Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
2009-05-02 11:20
633 查看
最近在使用ajax的时候经常出现下面的问题:
Sys.WebForms.PageRequestManagerParserErrorException:The message received from the server
count not be parsed.Common causes for this error are when the response is modified by calls to response.Write(),response filters,HttpModules,or server trace is enabled.
用Response.Redirect()或Response.Write()进行URL带参数的页面重定向时出现如题所示的错误。Ajax是无刷新的,而使用Response进行带参重定向时需要刷新页面。所以只须在UpdatePanel下设置“asp:PostBackTrigger”的“ControlID”为指定的控件名称即可,如:
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlKkdw" EventName="SelectedIndexChanged" />
</Triggers>
并且提示框的代码应改为
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, typeof(UpdatePanel), "test", "alert('请选择学年,学期!');", true);
Sys.WebForms.PageRequestManagerParserErrorException:The message received from the server
count not be parsed.Common causes for this error are when the response is modified by calls to response.Write(),response filters,HttpModules,or server trace is enabled.
用Response.Redirect()或Response.Write()进行URL带参数的页面重定向时出现如题所示的错误。Ajax是无刷新的,而使用Response进行带参重定向时需要刷新页面。所以只须在UpdatePanel下设置“asp:PostBackTrigger”的“ControlID”为指定的控件名称即可,如:
<Triggers>
<asp:AsyncPostBackTrigger ControlID="ddlKkdw" EventName="SelectedIndexChanged" />
</Triggers>
并且提示框的代码应改为
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, typeof(UpdatePanel), "test", "alert('请选择学年,学期!');", true);
相关文章推荐
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- UpdatePanel 报错 Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException:解决办法
- UpdatePanel 报错 Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException:解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- UpdatePanel 报错 Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException:解决办法
- Sys.WebForms.PageRequestManagerParserErrorException 错误的解决办法
- Ajax方法执行跳转或者加载操作系统报出这样错误Sys.WebForms.PageRequestManagerParserErrorException:如何让解决
- Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误解决办法
- Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误解决办法
- Sys.WebForms.PageRequestManagerParserErrorException错误的解决方法
- Sys.WebForms.PageRequestManagerParserErrorException错误的解决方法
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- Sys.WebForms.PageRequestManagerParserErrorException的解决方法