forum

Home / DeveloperSection / Forums / RadioButton inside Update Panel causing postback

RadioButton inside Update Panel causing postback

Anonymous User569504-Feb-2014

I am putting the following controls inside an update panel so that the whole page does not refresh. When clicking the button, the page does not refresh but when I try to change the radio button, the page refreshes and causes a full postback. Here is my code:

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager" runat="Server" EnablePartialRendering="true" />

<asp:UpdatePanel ID="updatePanelToggle" runat="server">

    <ContentTemplate>

        <asp:RadioButton ID="radioOn" AutoPostBack="true" runat="server" GroupName="toggle" Text="On" OnCheckedChanged="radioOn_CheckedChanged" />

        <asp:RadioButton ID="radioOff" AutoPostBack="true" runat="server" GroupName="toggle" Text="Off" OnCheckedChanged="radioOff_CheckedChanged" />

        <asp:Button ID="testButton" runat="server" OnClick="mybutton_click"/>

    </ContentTemplate>

</asp:UpdatePanel>


Updated on 04-Feb-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By