Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

asp.net, radiobuttonlist, c#

I have below codes in html and bootstrap and want to switch to use asp.net radiolist control.
how can I do that? Thanks

    <div class="btn-group" data-toggle="buttons">
                                             <label class="btn btn-danger">
                                                 <input type="radio" id="testme" autocomplete="off" > Health Insurance
                                             </label>
                                             <label class="btn btn-danger">
                                                 <input type="radio" id="testme" autocomplete="off"> Dental Insurance
                                             </label>
                                             <label class="btn btn-danger">
                                                 <input type="radio" id="testme" autocomplete="off"> Life Insurance
                                             </label>
                                             <label class="btn btn-danger">
                                                 <input type="radio" id="testme" autocomplete="off"> Accident Insurance
                                             </label>
                                             <label class="btn btn-danger">
                                                 <input type="radio" id="testme" autocomplete="off"> Medicare Insurance
                                             </label>
                                         </div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada 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
HI ITsolutionWizard      

Here is the example and  you can use RepeatDirection  property for vertical and horizontal alignment.

 
<asp:RadioButtonList ID="RadioButtonList1" runat="server" TextAlign="Right" RepeatDirection="Horizontal">
 <asp:ListItem>Health Insurance</asp:ListItem>
 <asp:ListItem>Dental Insurance</asp:ListItem>
 <asp:ListItem>Life Insurance</asp:ListItem>
 <asp:ListItem>Accident Insurance</asp:ListItem>
 <asp:ListItem>Medicare Insurance</asp:ListItem>
 </asp:RadioButtonList>

Open in new window


Regards,
Tapan Pattanaik