Solved

How to deselect all radio buttons in a group on C# side?

Posted on 2011-09-14
2
373 Views
Last Modified: 2012-05-12
I have a group of radio buttons defined as

                           <asp:RadioButtonList ID="radiobtnlist" runat="server" AutoPostBack="true"
                               onselectedindexchanged="RadiocpManu_SelectedIndexChanged"
                               RepeatDirection="Horizontal" Width="300px">
                               <asp:ListItem Value="type1">type1</asp:ListItem>
                               <asp:ListItem Value="type2">type2</asp:ListItem>
                               <asp:ListItem Value="type3">type3</asp:ListItem>
                               <asp:ListItem Value="type4">type4</asp:ListItem>
                           </asp:RadioButtonList>

What would be an easier way to unselect all radiobuttons in radiobtnlist in Reset function from C# side?

Thanks.
0
Comment
Question by:minglelinch
2 Comments
 
LVL 16

Accepted Solution

by:
disrupt earned 500 total points
ID: 36539552
radiobtnlist.ClearSelection()
0
 
LVL 1

Author Closing Comment

by:minglelinch
ID: 36542728
Nice answer. Thank you.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
imap mails 1 22
HttpPostedFile 1 26
Firing an ASP.NET event on selection of a JQuery datepicker 4 16
Help with adding DLL file in Windows project 20 30
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question