我的错误是
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
我的网页上有一个 UpdatePanel
和一个 GridView
,以及几个 TextBox
。在我的 gridview 中有产品信息,当我将 gridview 的 SelectedIndex
设置为 -1 作为开始时。
我运行代码,并从 GridView 中选择一个产品,它工作正常。然后我单击 GridView 上的另一个产品(意味着所选索引已更改),然后我在问题顶部收到错误。
一天前,此网页中使用 Infragistics 选项卡进行 Tabs
,但没有出现此错误,我现在使用 Ajax TabContainer
但我似乎看不到来处理此错误。我尝试将 ValidateRequest="false"
添加到我的 Page 指令中,但没有成功。
有什么想法吗?有人遇到过这种错误并解决了吗?
提前谢谢您。
最佳答案
如果我理解正确的话,这是您页面中的 UpdatePanel 问题,这是在 ScriptManager 中将 EnablePartialRendering 设置为 false 的解决方案
我认为这可能对某人有帮助
关于c# - Microsoft JScript 运行时错误 : Sys. WebForms.PageRequestManagerServerErrorException:从服务器返回的状态代码为:500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5879961/