on 04-12-2010 4:13 PM
Hi,
How to clear the test fields , to perform very faster way. I am using this clear() method as follows
Me.ocmpnyto.Value = ""
Me.ocontactto.Value = ""
Me.ophoneto.Value = ""
Me.ofaxto.Value = ""
is there any alternative .....
Thanks and Regards,
Y.
Edited by: Yughandar on Apr 12, 2010 5:47 PM
HI,
What u have tried is fine, but u could also try the following..
Dim frm As Control = Me.FindControl("Form1")
Dim ctl As Control
For Each ctl In frm.Controls
Dim tb As TextBox
If TypeOf ctl Is TextBox Then
tb = CType(ctl, TextBox)
tb.Text = String.Empty
End If
Next
Hope it helps,
Vasu Natari.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very helpful to me
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.