2011-12-16 31 views
0

在Web应用程序中,我工作的更新面板上,当我把单选按钮列表控件在更新面板,点击单选按钮,它显示类似的错误:在asp.net中更新panl?

    Microsoft JScript runtime error: 
        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. 

我PLCE这样的控件:

 <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
       <ContentTemplate>           
        <asp:RadioButtonList ID ="rdbutTrip" runat ="server" Font-Bold="true" RepeatDirection="Horizontal" GroupName="g" AutoPostBack="True" onselectedindexchanged="rdbutTrip_SelectedIndexChanged" > 
         <asp:ListItem Text="Route Wise Report" Value ="R"></asp:ListItem> 
         <asp:ListItem Text="Transport Wise Report" Value ="T"></asp:ListItem> 
        </asp:RadioButtonList> 
       </ContentTemplate> 
       </asp:UpdatePanel> 

请帮我谢谢。

回答

0

尝试将ScriptManager控件放在页面内的标签中。

+0

我在母版页中使用母版页我有脚本管理器先生Rahul – 2011-12-16 04:51:54

+0

我建议尝试Fiddler以查看您是否正在浏览器端下载脚本。我试了一下代码,并删除了OnSelectedIndexChanged =“rdbutTrip_SelectedIndexChanged”。一切都按预期工作。那件事你写了什么? – 2011-12-16 04:54:17

0

如错误消息所示,您是使用页面上的Reponse.Write()还是使用任何响应过滤器HttpModules?

编辑:

你们是不是要生成一个报告RadioButtonList的Click事件(我是从项目名称路线明智的报告猜测)。如果是的话,那么你最好在普通回传中这样做。

无论如何请RadioButtonList单击事件代码。