How to select only one radio button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TapasRanjanRay
    New Member
    • Aug 2007
    • 5

    How to select only one radio button

    Hi All
    do any one know how to select only one radio button at a time with runat server attribute, the radio buttons are inside a gridview as a itemtemplate in a template.

    thanks
    Tapas
  • shweta123
    Recognized Expert Contributor
    • Nov 2006
    • 692

    #2
    Hi,

    Give all the radio buttons same name so that only one will be selected as we do it in HTML.

    Comment

    • mirm
      New Member
      • Jul 2007
      • 3

      #3
      Use the RadioButtonList tool

      Comment

      • nateraaaa
        Recognized Expert Contributor
        • May 2007
        • 664

        #4
        Originally posted by TapasRanjanRay
        Hi All
        do any one know how to select only one radio button at a time with runat server attribute, the radio buttons are inside a gridview as a itemtemplate in a template.

        thanks
        Tapas
        Giving each radio button the same value in the groupName propery of the radio button control will allow you make every radio button within that groupName mutually exclusive (one one item in that group can be selected).

        Nathan

        Comment

        • shiva srivastava
          New Member
          • Aug 2007
          • 2

          #5
          hi all!
          for selecting only one radiobutton give the same groupname in property window of radiobuttons.

          Comment

          • edgeineervinay
            New Member
            • Mar 2012
            • 1

            #6
            Originally posted by shiva srivastava
            hi all!
            for selecting only one radiobutton give the same groupname in property window of radiobuttons.
            very much thanks......... ...

            Comment

            Working...