我的ASP.NET登录页面出现问题,运行了IIS Web服务器。消息问题"无效的回发或回调参数"点击登录后无法重定向" admin主页"。 但是,如果该登录页面与Visual Studio一起运行,它可以正常重定向如何为IIS配置或我的登录代码做什么?
这是我的登录页面代码(默认页面):
KoneksiServer()
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Cache.SetNoStore()
txt_user.Focus()
If Not IsPostBack Then
If Session("username") <> "" And Session("Login") <> "" Then
Response.Redirect("~/page/Admin/index.aspx")
End If
If ((Not (Request.Cookies("UserName")) Is Nothing) _
AndAlso (Not (Request.Cookies("Password")) Is Nothing)) Then
txt_user.Text = Request.Cookies("UserName").Value
txt_password.Attributes("value") = Request.Cookies("Password").Value
End If
End If
如果是IIS,这是错误页面: