登陆.docVIP

  • 3
  • 0
  • 约2.13万字
  • 约 24页
  • 2016-12-03 发布于河南
  • 举报
登陆

登陆 01.//首先判断用户名和密码都不能为空 02.if (userNameTxt.Text.Trim() == || passwordTxt.Text.Trim() == ) 03.{ 04. errlabel.Text = 用户名和密码不能为空!; 05. return; 06.} 07. 08.SqlHelper sh = new SqlHelper();//用Sql帮助类来实现查询,封装了常用的SQL操作 09.string sql = string.Empty; 10.//判断用户类型 11.if (userType == 1) 12.{ 13. sql = select * from jcsjk_users where username= + userNameTxt.Text + + 14. and password= + passwordTxt.Text + and type=1; 15.} 16.else if (userType == 2) 17.{ 18. sql = select * from jcsjk_users where username= + userNameTxt.Text + + 19. and pass

文档评论(0)

1亿VIP精品文档

相关文档