G
Guest
Hi. I'm trying to loop through all webcontrols in my
System.Web.UI.HtmlControls.HtmlForm.
This is my code:
Dim form As HtmlForm
Dim control As Control
form = Me.FindControl("completion")
For Each control In form.Controls
....
Next
Looking at the form.Controls.Count property it says that there are 109
controls on my page, but the For Each statement only does one loop where it
returns a LiteralControl. Am I missing something here? Shouldn't the loop
execute 108 times??
Thanks,
Shawn
System.Web.UI.HtmlControls.HtmlForm.
This is my code:
Dim form As HtmlForm
Dim control As Control
form = Me.FindControl("completion")
For Each control In form.Controls
....
Next
Looking at the form.Controls.Count property it says that there are 109
controls on my page, but the For Each statement only does one loop where it
returns a LiteralControl. Am I missing something here? Shouldn't the loop
execute 108 times??
Thanks,
Shawn