option buton

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalini166
    New Member
    • Apr 2008
    • 70

    option buton

    I have three option button.how to choose one at a time.

    if i select option1, then i select option2 two of them selected.

    pls help me
  • balame2004
    New Member
    • Mar 2008
    • 142

    #2
    Originally posted by shalini166
    I have three option button.how to choose one at a time.

    if i select option1, then i select option2 two of them selected.

    pls help me
    I think you are using check boxes so the user can select more than one button at a time.

    Use radio buttons to let user to select only one button at a time.

    Comment

    • balame2004
      New Member
      • Mar 2008
      • 142

      #3
      Originally posted by balame2004
      I think you are using check boxes so the user can select more than one button at a time.

      Use radio buttons to let user to select only one button at a time.
      If you are using radio buttons set same group name for all those three buttons.

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Originally posted by balame2004
        If you are using radio buttons set same group name for all those three buttons.
        Or, you could use the RadioButtonList .
        [code=html]
        <asp:RadioButto nList ID="rbl1" runat="server">
        <asp:ListItem Text="Option 1" Value="1" />
        <asp:ListItem Text="Option 2" Value="2" />
        <asp:ListItem Text="Option 3" Value="3" />
        </asp:RadioButton List>
        [/code]

        Comment

        Working...