爱问知识人 爱问共享资料 医院库

求大神帮忙 用c?

首页

求大神帮忙 用c?

求大神帮忙 用c#编写一个在网页打开的用户登录界面的代码

提交回答

全部答案

    2013-11-06 22:34:48
  •   private void btnLogin_Click(object sender, EventArgs e)
            {
                string str = "";
                string str2 = "";
                if (StringType。
      StrCmp(this。cboUserName。Text, "", false) == 0) { OMISFunction。MessageboxInfo("请选择要登录的用户名 !", MessageBoxButtons。
      OK, MessageBoxIcon。Asterisk); this。cboUserName。Focus(); return; } else { str3 = Strings。
      Mid(this。cboUserName。Text, Strings。InStr(this。cboUserName。Text, "=", CompareMethod。Text) + 1); str = Strings。
      Trim(Strings。Mid(this。cboUserName。Text, 1, Strings。InStr(this。cboUserName。Text, "=", CompareMethod。Text) - 1)); string strSql = "select ID from view_user where ID= " + str3; try { //这里省略验证过程 } catch (Exception exception1) { ProjectData。
      SetProjectError(exception1); Exception exception = exception1; Debug。WriteLine(Information。
      Err()。Description); ProjectData。ClearProjectError(); } } } 这是我写的程序里的一部分。
      没有贴全,特别是验证部分。

    白***

    2013-11-06 22:34:48

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈
关注
爱问

关注爱问微信公众号,开启知识之旅,随时随地了解最新资讯。

确定举报此问题

举报原因(必选):