UpdatePanel中点击按钮Session过期跳转页面相关问题:Sys.WebForms.PageRequestManagerParserErrorException:无法分析从服务器收到的消息

使用

Response.Write("<script language=javascript>window.location.href='Login.aspx';</script>");

报错:
Sys.WebForms.PageRequestManagerParserErrorException:无法分析从服务器收到的消息

使用

 

ScriptManager.RegisterStartupScript(this, this.GetType(), "", "window.location.href='Login.aspx';", true);

 

依旧报错:Sys.WebForms.PageRequestManagerParserErrorException:无法分析从服务器收到的消息

 

 

后,尝试使用 

Response.Redirect("Login.aspx");

解决问题。

 

posted @ 2018-01-22 16:12  如人饮水2019  阅读(334)  评论(0编辑  收藏  举报