Foxtable(狐表)用户栏目专家坐堂 → 判断这二个文本框中任何一个为空


  共有7948人关注过本帖树形打印复制链接

主题:判断这二个文本框中任何一个为空

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/6/6 17:30:00 [显示全部帖子]

Dim tx1 As String = e.Form.Controls("TextBox1").Value

Dim tx2 As String = e.Form.Controls("TextBox2").Value
If 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


 回到顶部