Dim tx1 As String = e.Form.Controls("TextBox1").Value
Dim tx2 As String = e.Form.Controls("TextBox2").ValueIf tx1 = "" OrElse tx2 = "" Then
End If
更好的办法:
if e.Form.Controls("TextBox1").Value Is Nothing OrElse e.Form.Controls("TextBox1").Value Is Notning Then
End if