Dim control as Control
control = Page.ParseControl("<tr><td><asp:textbox id='textbox1' runat='server' /></td></tr>")
This as simple as I can make it.
So, in QuickWatch, I can see:
control.Controls(0) is a literalcontrol
control.Controls(1) is a textbox with id, clientid and uniqueid all set to 'textbox1'.
So the 64k question:
Why does control.FindControl("textbox1") return Nothing? I really don't get it. I know that FindControl is not recursive, but textbox1 is in the controlscollection of the root control! Please explain - this is driving me nuts...
View Complete Post