Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

Radio button not working correctly

I had 3 radio buttons in a group box... I added a 4th radio button.  The first three radio buttons are unchecked when one of the other 3 are checked; however, I can check one of the first 3 and also check the 4th (in other words, when I checked the 4th, one of the first three remains checked).  

I know this is NOT normal behavior; the question I have is:  how do I correct this?
0
rmmarsh
Asked:
rmmarsh
2 Solutions
 
CebikCommented:
cut this 4th radiobutton.. click on groupbox and paste it then..
0
 
rmmarshAuthor Commented:
Sorry, didn't do a thing... still not acting properly...
0
 
käµfm³d 👽Commented:
Try moving all the radio buttons to the form's surface, then delete the group box, then cut/paste the radios back to the group box. If that doesn't work, I would suggest removing all the controls and then re-adding everything.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
CebikCommented:
check parent of radiobutton3 and radiobutton4 programaticly
i think they are different

radiobutton3.Parent
0
 
rmmarshAuthor Commented:
I found it... the first 3 radio buttons were not part of the group... thanks everyone...
0
 
RobbPCommented:
Just make sure that all of your option buttons are listed in the radiobuttonList  tag, ie:

<asp:RadioButtonList ID="RadioButtonList1" runat="server"
                RepeatDirection="Horizontal">
                <asp:ListItem Value="0">Yes</asp:ListItem>
                <asp:ListItem Value="1" >No</asp:ListItem>
                <asp:ListItem Value="2" Selected="True">Maybe</asp:ListItem>
</asp:RadioButtonList>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now