求救: asp.net 基于Forms验证后无法跳转

ylh1223 ylh1223 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
// 登陆认证
int i = um.LogonAuthenticate(txtLogonName.Text.Tri(),userPassword,clientIP);
switch(i)
{
case 1:
// 成功登陆
FormsAuthentication.RedirectFromLoginPage(txtLogonName.Text.Trim(),chkAutoSignIn.Checked); break;

case 0:
// 帐号冻结
Response.Write("<script>alert('由于您的帐号被管理员冻结,您将无法登陆系统!请与管理员联系!');</script>");
break;
default:
// 非法登陆
Response.Write("<script>alert('您不是本系统的合法用户,此次登陆属非法登陆!');</script>");
break;
}
}
catch
{
Response.Write("<script>alert('登陆失败!请稍后再试!');</script>");
}

//调试时可以正常执行FormsAuthentication.RedirectFromLoginPage(txtLogonName.Text.Trim(),chkAutoSignIn.Checked);但就是跳转不了!!
急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
高手请进,在线等待........
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
ylh1223
.NET社区 62,272 成员 668,968 内容