Thankyou for your response. I have looked at the source and it comes up with "ctl00_ContentPlaceHolder1
and that does correspond with my code
DataPager pager = ((DataPager)ListView1.Find
This seems to be a problem with the ListView control, I have tried findcontrol with other data controls and they seem to work o.k
Anyone?
Main Topics
Browse All Topics





by: TheLearnedOnePosted on 2008-03-11 at 13:28:01ID: 21099867
FindControl is a major problem with any ASP.NET web site. I usually look at the View Source in the browser and how the control's unique ID is generated to determine the "best" way find the control.
Bob