Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
radiobutton click and avoid page refresh
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="rum23, post: 4310379"] I have a list of radio buttons on a page like this <asp:UpdatePanel ID="updAuthoptions" runat="server"> <ContentTemplate> <asp:Panel 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> </asp:panel> </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! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Web Controls
radiobutton click and avoid page refresh
Top