R
rum23
I have a list of radio buttons on a page like this
<asp:UpdatePanel ID="updAuthoptions" runat="server">
<ContentTemplate>
<aspanel ID="panelAuthorizationType" runat="server">
<table>
<tr>
<td>
<asp:RadioButton ID="RadioButton1"
GroupName="rbAuthType" runat="server" Text="radio 1"
OnCheckedChanged="RadioButton1_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadioButton2"
GroupName="rbAuthType" runat="server" Text="radio 2"
OnCheckedChanged="RadioButton2_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadioButton3"
GroupName="rbAuthType" runat="server" Text="radio 3"
OnCheckedChanged="RadioButton3_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
</table>
</aspanel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="RadioButton1"
EventName="RadioButton1_CheckedChanged" />
<asp:AsyncPostBackTrigger ControlID="RadioButton2"
EventName="RadioButton2_CheckedChanged" />
<asp:AsyncPostBackTrigger ControlID="RadioButton3"
EventName="RadioButton3_CheckedChanged" />
</Triggers>
</asp:UpdatePanel>
Based on the radio button click, I will be enabling/disabling other controls
on the page. Now, I want to do the enabling and disabling of controls without
the page refresh. However, with the code above, the page refreshes whenever
radiobutton1 or radiobutton2 or radiobutton3 is clicked. If I don't set the
Autopoastback, the event is not even firing. What wrong am I doing? please
help.
Thanks!
<asp:UpdatePanel ID="updAuthoptions" runat="server">
<ContentTemplate>
<aspanel ID="panelAuthorizationType" runat="server">
<table>
<tr>
<td>
<asp:RadioButton ID="RadioButton1"
GroupName="rbAuthType" runat="server" Text="radio 1"
OnCheckedChanged="RadioButton1_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadioButton2"
GroupName="rbAuthType" runat="server" Text="radio 2"
OnCheckedChanged="RadioButton2_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
<tr>
<td>
<asp:RadioButton ID="RadioButton3"
GroupName="rbAuthType" runat="server" Text="radio 3"
OnCheckedChanged="RadioButton3_CheckedChanged" AutoPostBack="true">
</asp:RadioButton>
</td>
</tr>
</table>
</aspanel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="RadioButton1"
EventName="RadioButton1_CheckedChanged" />
<asp:AsyncPostBackTrigger ControlID="RadioButton2"
EventName="RadioButton2_CheckedChanged" />
<asp:AsyncPostBackTrigger ControlID="RadioButton3"
EventName="RadioButton3_CheckedChanged" />
</Triggers>
</asp:UpdatePanel>
Based on the radio button click, I will be enabling/disabling other controls
on the page. Now, I want to do the enabling and disabling of controls without
the page refresh. However, with the code above, the page refreshes whenever
radiobutton1 or radiobutton2 or radiobutton3 is clicked. If I don't set the
Autopoastback, the event is not even firing. What wrong am I doing? please
help.
Thanks!