使用
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");
解决问题。
UpdatePanel中点击按钮 ?Session过期跳转页面相关问题:Sys.WebForms.PageRequestManagerParserErrorException:无法分析从服务器收到的消息
原文地址:https://www.cnblogs.com/cccc1993/p/8329522.html