Hi There,
Is there any way to prevent controls within the dialog's contentTemplate from changing their ids and names?
I would like to reference from my code a control by it's original id.
E.g. if my ContentTemplate contained a label called "TextBox1" I could just write:
Code: Visual Basic.NET
TextBox1.Text="Hello World"
I appreciate I could do something like the following:
Code: Visual Basic.NET
Dim MyTextBox As TextBox = Dialog1.ContentContainer.FindControl("TextBox1")
But I would like to implement the Dialog into some existing legacy code which relies on the controls being accessible at the page level, and also their values being accessable through "Request.Form" without any renaming.
Is it possible that this control could be set up to work either way? E.g. the way ASP AJAX's UpdatePanel ContentTemplate does not modify IDs.
Thanks in advance,
Dave