S
Steven K
Hello,
I using the following to loop through my controls to get the text value for
each text box. However, I am getting the following error. Even if I
comment out the code "strTextBox = ctl.Text", I still don't get any comments
("hello").:
'Text' is not a member of 'System.Web.UI.Control'.
Sub LoopingControls02_Click (Sender As Object, Args As EventArgs)
Dim strTextBox as String
For Each ctl As Control In Page.Controls
If TypeOf(ctl) Is TextBox Then
strTextBox = ctl.Text
response.write(strTextBox & " hello<br>")
End If
Next
End Sub
Any help would be appreciated with this...
I using the following to loop through my controls to get the text value for
each text box. However, I am getting the following error. Even if I
comment out the code "strTextBox = ctl.Text", I still don't get any comments
("hello").:
'Text' is not a member of 'System.Web.UI.Control'.
Sub LoopingControls02_Click (Sender As Object, Args As EventArgs)
Dim strTextBox as String
For Each ctl As Control In Page.Controls
If TypeOf(ctl) Is TextBox Then
strTextBox = ctl.Text
response.write(strTextBox & " hello<br>")
End If
Next
End Sub
Any help would be appreciated with this...