ASP.NET Sys.WebForms.PageRequestManagerParseErrorException
我正在处理我们公司程序员留下的一个项目,
我想知道出现此错误的原因是什么
在执行此行期间始终会触发该命令
Response.Redirect("ViewPositions.aspx?empid=1");
,但问题是,当我从地址栏导航时,ViewPositions.aspx 工作正常 另一方面,不是来自 Response.Redirect ,
调用 Response.Redirect 的表单具有复杂的布局。
它是一个帐户注册向导。它有 RadPageView、RadMultiPage、RadAjaxPanel、RadAjaxLoadingPanel、RadAsyncUpload、一些 DropDownBoxes、一些 TextBoxes 和 GridView。
一切正常并更新数据库,但是当涉及到重定向时......它给出了我发布的错误。
注意:两个页面中都没有 Response.Write 调用
问题是。
我想知道导致此错误的可能原因是什么。因为它很难调试。
我用谷歌搜索了这个问题并尝试了解决方案,但没有运气。
请指出我正确的方向。
谢谢。
更新:我已经确认一切正常..只是 Response.Redirect 触发了这个问题..如果我需要发布更多内容,请告诉我。
更新:我尝试更改重定向到... Response.Redirect("http://www.google.com"); 它会抛出一个不同的错误
这意味着页面调用重定向导致错误.. 我的困惑是.. 当页面没有调用任何重定向时,页面工作正常...请帮助 =(
I'm working on a project left by a programmer in our company
i'd like to know what could be the reasons im getting this error
this is always firing during the execution of this line
Response.Redirect("ViewPositions.aspx?empid=1");
but the thing is, the ViewPositions.aspx is working ok when i navigate it from the addressbar
and not coming from the Response.Redirect
on the other hand the form where in the Response.Redirect was called, have a complicated layout.
its a registration wizard for an account. And it has RadPageView, RadMultiPage, RadAjaxPanel,RadAjaxLoadingPanel,RadAsyncUpload, some DropDownBoxes, some TextBoxes and GridView.
everything is working and updating the database but when it comes to the redirection... its giving the error i've posted.
Note: there are no Response.Write calls in both pages
The question is.
I would like to know what are the possible causes of this error. Because its hard to debug.
I've googled this problem and tried the solutions but no luck.
Just point me please to the right direction.
Thank you.
Update: Ive confirmed that everything works fine.. just the Response.Redirect is triggering this problem.. please let me know if i need to post anything more.
Update: I tried changing the redirect to... Response.Redirect("http://www.google.com");
and it throws a different error
which means it is certain that the page calling the redirect is causing the error..
my confusion is.. the page is working fine when its not calling any redirect... please help =(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 telerik/rad 控件,它有 httpModules,特别是 UpdatePanel
告诉我它是否解决了您的问题
If you are using telerik/rad controls, it has httpModules especialy for UpdatePanel
Tell me if it solves your problem
是否在 Response.Redirect 之后正在进行进一步的页面处理?您是否尝试过:
结束当前页面的执行?
Could it be that further page processing is happening after your Response.Redirect? Have you tried:
to end the execution of the current page?