这样实现批量验证
我的窗体中有63个textbox控件,名字为text1-text63
提交时要对textbox进行验证,而且只有text1-text23是必添的!
在win form中可以用
Dim txt As Control
For Each txt In Me.Controls
If txt.GetType.ToString = "System.Windows.Forms.TextBox" Then
If txt.Name.ToString > "Text" Then
MsgBox(txt.Name.ToString)
txt.Text = "就是你了"
End If
End If
Next
在asp.net中怎么实现?
我要vb.net 的代码!谢谢!!