/// <summary> /// 检查用户是否存在 /// </summary> private void GetModelByCode() { if (ValidateUtil.isBlank(txtID.Value.Trim())) { Response.Write("<script>alert('请输入用户名!')</script>"); return; } if (ValidateUtil.isBlank(txtPwd.Value.Trim())) { Response.Write("<script>alert('请输入密码!')</script>"); return; } if (userBll.CheckUserCode(txtID.Value.Trim()) > 0) { //PreCheckLock(); this.GetModelByCodeAndPwd(); } else { Response.Write("<script>alert('账号错误!')</script>"); } }