Link to home
Start Free TrialLog in
Avatar of minglelinch
minglelinch

asked on

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

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.
ASKER CERTIFIED SOLUTION
Avatar of disrupt
disrupt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of minglelinch
minglelinch

ASKER

Nice answer. Thank you.