日期:2014-05-17 浏览次数:20398 次
$('#Submit').click(function () {
$.post("Login.aspx",
{
username: $('#cusername').val(),
pwd: $('#cpwd').val(),
verifycode: $('#txt_verify').val()
},
function (data, textStatue) {
if (data == "1") {
$('#tip').html("成功登录");
}
else if (data == "2") {
$('#tip').html("密码错误");
}
else if (data == "3") {
$('#tip').html("验证码错误");
}
}
);
return false;
})
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Params["username"] != null)
{
emp.EmployeeId = Request.Params["username"];
emp.EmployPwd = Request.Params["pwd"];
string verifycode = Request.Params["verifycode"];
if (buss.CheckUser(emp)&&CheckVerifyCode(verifycode))
{
Response.Write("1");
&nbs