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

Sys.WebForms.PageRequestManagerParserErrorException错误

在后台一个按钮代码中写了个如下语句
ScriptManager.RegisterStartupScript(this, GetType(), "abc", "<script>alert('111111111');</script>", true);
部署到服务器上,按第一次按按钮没问题(也弹出对话框),把页面刷新一下,再按则出现如下错误:
消息: 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 PUB'.
行: 5
字符: 62099
代码: 0

网上说有enableeventvalidation=false等都试过,都没效果,
但是我部署到另外一台服务器上,却发现没有问题
两台服务器不同之处是我本机访问时一个是internet,一个是intranet(这个没问题),
后来我又设置有问题的服务器(internet的)为集成windows验证,每次进入输入密码后,也不会出现上述错误(另外本机也没问题)

真的没办法了,请各位帮忙. --------------------编程问答-------------------- <Triggers> 
<asp:PostBackTrigger ControlID="btnSave" /> 
</Triggers> 
ScriptManager.RegisterStartupScript(this,typeof(string),"js","",true);

--------------------编程问答-------------------- 帮顶了   等待牛人 --------------------编程问答-------------------- 谢谢
(人生如梦)<Triggers>  
<asp:PostBackTrigger ControlID="btnSave" />  
</Triggers>  
ScriptManager.RegisterStartupScript(this,typeof(string),"js","",true);
之前已经试过,问题依旧...... --------------------编程问答-------------------- 可能与上网设置有关,因为使用代理上网就有问题,不使用则没有问题.
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,