求解 页面跳转问题、
UserInfo user = userop.LoginCheck(UserName.Value.Trim(), pwd.Value.Trim());if (user.IsLogin)
{
Session["UserID"] = user.UserID.ToString();
Session["UserNet"] = user.UserNet;
Session["UserFace"] = user.UserFace;
Session["isAdmin"] = false;
Response.Redirect("ViewMessage.aspx");
//string script = "<script>javascript:alert('登录成功!')</script>";
//ClientScript.RegisterStartupScript(this.GetType(), "login", script);
}
else
{
string script = "<script>javascript:alert('非法登录!')</script>";
ClientScript.RegisterStartupScript(this.GetType(), "login", script);
}
能读出数据库的数据、但就是执行到Response.Redirect时、不跳转不知道什么情况 刚才看了一下、我没分、望各位好心人解答一下
[ 本帖最后由 wmymtx 于 2011-9-22 15:23 编辑 ]