Posted on 2006-07-05
In ASP.NET 2.0, I am using a Master Page on my site
Now my webpage refers to the Master page, So I get a Content Place Holder, a "Content" Tag on my Web page and I place my Server Controls inside this Content Tag.
Say I have a TextBox called "MyTextBox", We are supposed to access it using
Now its not able to find the control, and if I look at the source generated I find that my TextBox control has been renamed to
i.e thye ID of the Content Place Holder is appended to my Control's ID and something called ct100 as well, which is God knows what
Now How do I access the TextBox ? I don't think Microsoft wants you to go and check the Source generated in the Browser and find out what all to append to the TextBox ID for accessing it...
I have asked a similar query at ASP.NET forum but have not recieved any response...