UpdatePanel使用问题一
问题描述:
在UpdatePanel中有服务器Button的事件时,使用Response.Write(""),Response.Redirect("")等服务器端方法时报错,
当程序调用Response.write不能正常显示,报出如下错误:
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 '<script language=jav'.
解决方法:
<Triggers>
<asp:PostBackTrigger ControlID="btn_get"></asp:PostBackTrigger>
</Triggers>