Response.Write( " <script> alert( '请输入正确的价格! ') </script> ");
这是程序中的,执行到这里时,出现一个对话框,错误如下:
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 ' <script> alert( '请输入正确 ').
使用下面的,也会出现这种情况
Response.Redirect( "ss.aspx ");
------解决方案--------------------------------------------------------
Response.Write( " <script language=javascript> alert( '请输入正确的价格! ') </script> ");
加上这一句language=javascript试试。。。
------解决方案--------------------------------------------------------
http://forums.microsoft.com/MSDN-CHT/ShowPost.aspx?PostID=1523427&SiteID=14
http://forums.microsoft.com/MSDN-CHT/ShowPost.aspx?PostID=1523425&SiteID=14&mode=1