问题描述
一切正常,除非CheckBoxList有很多元素(数千个项目),然后我点击并检查了另一个div的复选框,然后发生以下错误:
Everything works fine, except when the CheckBoxList has many elements (thousands of items) and I click on the and i checked the other div's checkbox then the following error occurs:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
此错误发生在ScriptResource.axd之一
This error occurs in one of the ScriptResource.axd
推荐答案
当您将控件注册为AsyncPostbackTrigger时,有时会出现此问题多个更新面板。
This issue sometimes occurs when you have a control registered as an AsyncPostbackTrigger in multiple update panels.
如果这不是问题,请在脚本管理器声明后尝试添加以下内容:
If that's not the problem, try adding the following right after the script manager declaration:
<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
function EndRequestHandler(sender, args){
if (args.get_error() != undefined){
args.set_errorHandled(true);
}
}
</script>
这里讨论的解决方案还有一些:
There are a few more solutions discussed here: http://forums.asp.net/t/1066976.aspx/9/10
这篇关于Sys系统。 WebForms的。 PageRequestManagerServerErrorException状态代码:500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!