Author: icm63 | Posted on: 8/31/2009 4:49:16 PM | Views : 217

 I have 30 asp:linkbuttons within a user control.
The user control gets used on a page thats within a master page.
I am writing code WITHIN the user control to find the LinkButton's ...
My code does not find the linkbuttons.
For Each masterControl As Control In Page.Controls If TypeOf masterControl Is MasterPage Then For Each formControl As Control In masterControl.Controls If TypeOf formControl Is System.Web.UI.HtmlControls.HtmlForm Then For Each contentControl As Control In formControl.Controls If TypeOf contentControl Is ContentPlaceHolder Then For Each ctrl As Control In contentControl.Controls If TypeOf ctrl Is LinkButton Then If CInt(CType(ctrl, LinkButt ...

Go to the complete details ...