2011-12-16 33 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單擊事件代碼。