当前位置:编程学习 > C#/ASP.NET >>

急救 sys.webForms.pagerequestmanagerparsererrorexception 找了3天仍未解决

[img=C:\Documents and Settings\Administrator.LENOVO-693A6583\桌面\xx][/img]
sys.webforms.pagerequestmanagerparsererrorexception: the message received from the server could 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.
Details:Error parsing near '
<!DOCTYPE html p‘

运行时 偶尔报出这样的错误  
找了3天的解决方法 都不行  --------------------编程问答-------------------- 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 filters, httpmodules,or server trace 这些地方断点看看 或者加记录日志分析分析 --------------------编程问答--------------------
引用 1 楼 xray2005 的回复:
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 filters, httpmodules,or server trace 这些地方断点看看 或者加记录日志分析分析


response filters, httpmodules,or server trace  都在那里 ? 在下是个新手
而且 这错误不是一直报错  有时1天运行 都不报错 --------------------编程问答-------------------- 用ajax了?? --------------------编程问答--------------------
引用 3 楼 lovely_baby 的回复:
用ajax了??

 恩  恩 --------------------编程问答-------------------- 如果你用的是微软的ajax框架,弹出提示框应该用: 
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('对不起,账号和密码错误');", true); 
--------------------编程问答--------------------
引用 4 楼 woshislr 的回复:
引用 3 楼 lovely_baby 的回复:
用ajax了??

恩  恩

http://www.cnblogs.com/dongyongjing/archive/2007/03/20/681411.html --------------------编程问答-------------------- 帮顶 --------------------编程问答--------------------
引用 5 楼 lovely_baby 的回复:
如果你用的是微软的ajax框架,弹出提示框应该用:
JScript codeScriptManager.RegisterStartupScript(this.UpdatePanel1,this.GetType(),"updateScript","alert('对不起,账号和密码错误');",true);

我已经把所有的弹出提示框都改成您说的了 但还是有报错 --------------------编程问答--------------------
引用 6 楼 lovely_baby 的回复:
引用 4 楼 woshislr 的回复:
引用 3 楼 lovely_baby 的回复:
用ajax了??

恩  恩

http://www.cnblogs.com/dongyongjing/archive/2007/03/20/681411.html

这个链接  我看了不下10遍 里面的该改的都改了但还是不行 --------------------编程问答-------------------- 帖子就这么沉了吗   高手在那里!!!!!!!!!!!!!!!!! --------------------编程问答-------------------- 帮顶下 --------------------编程问答--------------------
引用 8 楼 woshislr 的回复:
引用 5 楼 lovely_baby 的回复:
如果你用的是微软的ajax框架,弹出提示框应该用:
JScript codeScriptManager.RegisterStartupScript(this.UpdatePanel1,this.GetType(),"updateScript","alert('对不起,账号和密码错误');",true);

我已经把所有的弹出提示框都改成您说的……

把updatepanel中加上
 <Triggers>
        <asp:PostBackTrigger ControlID="btnOkSet" />
    </Triggers>
就不会报错了。 但是新问题出现了。 这样子的话就会出现页面刷新。 违背了我们当初做的初衷。
求高手帮忙。。。。。。 --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,