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);
新闻热点
疑难解答
图片精选