Solved

Radio button not working correctly

Posted on 2009-05-04
6
414 Views
Last Modified: 2013-12-17
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
Comment
Question by:rmmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:Cebik
ID: 24300629
cut this 4th radiobutton.. click on groupbox and paste it then..
0
 

Author Comment

by:rmmarsh
ID: 24300753
Sorry, didn't do a thing... still not acting properly...
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 200 total points
ID: 24300880
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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 6

Accepted Solution

by:
Cebik earned 300 total points
ID: 24302727
check parent of radiobutton3 and radiobutton4 programaticly
i think they are different

radiobutton3.Parent
0
 

Author Closing Comment

by:rmmarsh
ID: 31577828
I found it... the first 3 radio buttons were not part of the group... thanks everyone...
0
 
LVL 3

Expert Comment

by:RobbP
ID: 24304815
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

Featured Post

Learn by Doing. Anytime. Anywhere.

Do you like to learn by doing?
Our labs and exercises give you the chance to do just that: Learn by performing actions on real environments.

Hands-on, scenario-based labs give you experience on real environments provided by us so you don't have to worry about breaking anything.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question