首 页IT知识库翔宇问吧收藏本站
当前位置:翔宇亭IT乐园IT知识库WEBAjax

ajax弹出alert()的问题?

减小字体 增大字体 作者:金博伦  来源:金博伦的博客  发布时间:2010-07-08 17:59:00

string js = " < script language='javascript'> alert('编辑成功!'); < /script> " ;

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), " msg" , js, false);

出现如下错误提示,是什么原因?

Sys.WebForms.PageRequestManagerParserErrorException:The message received from the server
count 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'uage'; " javascript" } |

答:

1.因为ajax已经封装了js,所以有些是不可用的

2.ScriptManager.RegisterClientScriptBlock(UpdatePanel1, this.GetType(), " click" , " alert('修改成功!')" , true); 


本文源自:翔宇亭——IT乐园(http://www.biye5u.com),转载请保留此信息!

Tags:ajax alert

知识评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论

用户名: 查看更多评论

分 值:100分 90分 80分 70分 60分 40分 20分

内 容:

请注意用语文明且合法,不要发布带有攻击性、侮辱性的言论,谢谢合作!

验证码:

关于本站 | 网站帮助 | 广告合作 | 网站声明 | 友情连接 | 网站地图 | 用户守则 | 联系我们
本站部分内容来自互联网,如有侵权,请来信告之,谢谢!
Copyright © 2007-2019 biye5u.com. All Rights Reserved.
网站备案号:黑ICP备13005378号-3