I need to write an application in C# that can accept a WebForm. I am
assuming the WebForm would need to be accessed in design mode. I need to
recursively iterate through the fields in the form, including the fields in
the web usercontrols on the form.
I am using the .NET framework 2.0 and VS 2005Beta2.
This is what I noticed when the form fields were rendered at runtime
On a Form the fields for example
<asp:TextBox ID="WCTextBox1" runat="server"></asp:TextBox>
were rendered as
<input name="TextBox1" type="text" id="TextBox1" />
while form objects contained in web usercontrols (named WebUserControl1 on
the form)
<asp:TextBox ID="WCTextBox1" runat="server"></asp:TextBox>
were rendered as
<input name="WebUserControl1$WCTextBox1" type="text"
id="WebUserControl1_WCTextBox1" />
I need to create a unique list of all the form fields application wide to
create text values for them as well as assign security to the individual
elements.
How would I go about achieving this?
Thanks in advance
Sanjay