#region "非空检查"
if (txtLoginId.Value.Trim().ToString() == "")
{
Response.Write("<script language:javascript>alert('登录名不能为空');</script>");
return;
}
if (txtLoginPwd.Value.Trim().ToString() == "")
{
Response.Write("<script language:javascript>alert('登录密码不能为空');</script>");
return;
}
#endregion
string UserName = LoginManager.getLabelControlName(txtLoginId.Value.Trim().ToString(), txtLoginPwd.Value.Trim().ToString());
//调用查询方法
if (UserName != "")
{
Session["Name"] = UserName;
Response.Redirect("J28-Enclouse.aspx");
}
else
{
Response.Write("<script language:javascript>alert('用户名或密码错误');</script>");
}