P
Pumkin
Hey guys,
It appears to be a very simple problem, but I just cannot realize why
it is happening.
I have a HTMLTable in which I put 10 labels. Now, I'm trying to parse
the collection and to put text on labels.
Here is my code :
Dim ctrlLbl As Control
For Each ctrlLbl In Me.Controls
If (TypeOf (ctrlLbl) Is UI.WebControls.Label) Then
CType(ctrlLbl, Label).Text = "something"
k += 1
End If
Next
The problem is that there are no labels in the ControlCollection thus
there are 10 in the table on the page.
I tried to parse the table collection but with the same result.
Can anybody explain me what is happening there?
Thank you in advance
It appears to be a very simple problem, but I just cannot realize why
it is happening.
I have a HTMLTable in which I put 10 labels. Now, I'm trying to parse
the collection and to put text on labels.
Here is my code :
Dim ctrlLbl As Control
For Each ctrlLbl In Me.Controls
If (TypeOf (ctrlLbl) Is UI.WebControls.Label) Then
CType(ctrlLbl, Label).Text = "something"
k += 1
End If
Next
The problem is that there are no labels in the ControlCollection thus
there are 10 in the table on the page.
I tried to parse the table collection but with the same result.
Can anybody explain me what is happening there?
Thank you in advance