【发布时间】:2010-08-19 15:36:25
【问题描述】:
我有一个带有 asp:Timer 的 asp:UpdatePanel。这些位于主/内容页面中。代码如下:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick"></asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>
但是当计时器触发时,我收到以下错误:
Microsoft JScript 运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器接收到的消息。此错误的常见原因是通过调用 Response.Write()、响应过滤器、HttpModules 或启用了服务器跟踪来修改响应。 详细信息:在 ' 附近解析错误
这适用于独立的网络表单,但不适用于带有母版页的内容页面。
谁能解释一下解决方法?
提前感谢您的帮助!
【问题讨论】:
标签: c# asp.net updatepanel timer master-pages