一个关于让页面失效的方法的问题!!一个焦急的好学者~呵呵
Response.Buffer=true;
Response.ExpiresAbsolute=DateTime.Now.AddMilliseconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
if(Session["user"]==null)
{
Response.Redirect("login.aspx");
}
当我退出登陆时回跳转到其他页面,
我按后退键时会Response.Redirect("login.aspx")这个页;
但是我在这个页面提交用户名和密码是会发生错误!如果我不是从后退按钮跳转到登陆页面就能正常使用》》》??
Base-64 字符数组的无效长度。
[FormatException: Base-64 字符数组的无效长度。]
System.Convert.FromBase64String(String s) +0
System.Web.UI.LosFormatter.Deserialize(String input)
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
[HttpException (0x80004005): Invalid_Viewstate
Client IP: 127.0.0.1
Port: 4569
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)
ViewState: LinkButton1
Http-Referer: http://localhost/Lingjie/login.aspx
Path: /Lingjie/login.aspx.]
System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
System.Web.UI.Page.LoadPageViewState()
System.Web.UI.Page.ProcessRequestMain() +447