Hi guys,
I have written a page in 1.1 which simply traverses all the controls in the form using
HtmlForm form = (HtmlForm)Page.FindControl("form1");
foreach (Control Ctrl in form.Controls)
{}
Now, I am using 2.0 framework and this page is using a master template. I read that the form's called aspnet. However, I can't seem to get this bit working:
HtmlForm form = (HtmlForm)Page.FindControl("aspnet");
foreach (Control Ctrl in form.Controls)
{}
I would appreciate any help over this.
Thanks
I have written a page in 1.1 which simply traverses all the controls in the form using
HtmlForm form = (HtmlForm)Page.FindControl("form1");
foreach (Control Ctrl in form.Controls)
{}
Now, I am using 2.0 framework and this page is using a master template. I read that the form's called aspnet. However, I can't seem to get this bit working:
HtmlForm form = (HtmlForm)Page.FindControl("aspnet");
foreach (Control Ctrl in form.Controls)
{}
I would appreciate any help over this.
Thanks