I am using Asp.Net 1.1 Visual studio 2003, in a web Page
there are some web control like, Label, textbox, Checkbox etc. I have to find
Id of the all Label in the page.
Can any one please give me a suggestion & code how to
solve it?
I use this following code:
Dim c As Control
Dim i As Integer = 0
For Each c In
Page.Controls
If
c.GetType.ToString.Equals("System.Web.UI.WebControls.label") Then
i = i + 1
End If
Next