S
susie
I have the following code to generate textbox
dynamically. How can I specify all the textbox with to 50?
For i = 0 To e.Item.Controls.Count-1
Try
If (e.Item.Controls(i).Controls
(0).GetType().ToString()
= "System.Web.UI.WebControls.TextBox") Then
Dim tb As TextBox
tb = e.Item.Controls(i).Controls(0)
tb.Text = Server.HtmlDecode
(tb.Text)
End If
Catch
End Try
Next
Thanks a lot.
dynamically. How can I specify all the textbox with to 50?
For i = 0 To e.Item.Controls.Count-1
Try
If (e.Item.Controls(i).Controls
(0).GetType().ToString()
= "System.Web.UI.WebControls.TextBox") Then
Dim tb As TextBox
tb = e.Item.Controls(i).Controls(0)
tb.Text = Server.HtmlDecode
(tb.Text)
End If
Catch
End Try
Next
Thanks a lot.