473,586 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with Radio Buttons

Hi

i have radio buttons in my Page and i am able to see some starnge behaviour
with those.

1st : DSN
2nd radio button: MSDE

the above 2 are in collection.

below the 2nd radio button i have 2 more radio buttons which are in
collection and have named as T and F

when ever i click on the MSDE radio buttton i make the T button as .Selected
= True.

This is working fine...but when for testing i click on the F(False) button.
then i click on the DSN button..
now again i click on the MSDE button, but i am not able to see the T button
selected ....

Even though i have written the Code to the T button in the Selected index
changed of the MSDE radio button, why does not the T button show the value
as T ??

Thanks in advance
Senthil


Nov 19 '05 #1
2 1687
Hi SenthilVel,

the following code can solve your problem.

private void MSDE_CheckedCha nged(object sender, System.EventArg s e)
{
F.Checked=false ;
T.Checked=true;
}

private void DSN_CheckedChan ged(object sender, System.EventArg s e)
{
T.Checked=false ;
F.Checked=true;
}

Cheers,

Jerome. M

"SenthilVel " wrote:
Hi

i have radio buttons in my Page and i am able to see some starnge behaviour
with those.

1st : DSN
2nd radio button: MSDE

the above 2 are in collection.

below the 2nd radio button i have 2 more radio buttons which are in
collection and have named as T and F

when ever i click on the MSDE radio buttton i make the T button as .Selected
= True.

This is working fine...but when for testing i click on the F(False) button.
then i click on the DSN button..
now again i click on the MSDE button, but i am not able to see the T button
selected ....

Even though i have written the Code to the T button in the Selected index
changed of the MSDE radio button, why does not the T button show the value
as T ??

Thanks in advance
Senthil


Nov 19 '05 #2
Hi SenthilVel,

the following code can solve your problem.

private void MSDE_CheckedCha nged(object sender, System.EventArg s e)
{
if (F.Checked==tru e)
F.Checked=false ;

T.Checked=true;

}
Cheers,

Jerome. M

"SenthilVel " wrote:
Hi

i have radio buttons in my Page and i am able to see some starnge behaviour
with those.

1st : DSN
2nd radio button: MSDE

the above 2 are in collection.

below the 2nd radio button i have 2 more radio buttons which are in
collection and have named as T and F

when ever i click on the MSDE radio buttton i make the T button as .Selected
= True.

This is working fine...but when for testing i click on the F(False) button.
then i click on the DSN button..
now again i click on the MSDE button, but i am not able to see the T button
selected ....

Even though i have written the Code to the T button in the Selected index
changed of the MSDE radio button, why does not the T button show the value
as T ??

Thanks in advance
Senthil


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1772
by: Claes Andersen | last post by:
Hi, I got this piece of code that i intend to use for a quiz program. What it does is the following. When a user makes a choice in a family of radio buttons, the other choices are automatically disabled, hence allowing a "first answer counts" system. It works fine with just one family on a page, but I need it to work with more ... The...
15
2542
by: JR | last post by:
Hi. I hope someone out there who is more versed with JavaScript than I can help me with the following annoying problem. Here's the problem. I have a form with the following layout: Column A Column B Column C data 4 radio buttons more data .... ... ...
4
3266
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1> <input type="radio" name=p2 value=2> <input type="radio" name=p2 value=3> then a text area and a button:
6
3273
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked The problem i am facing is that i do not know how many yes/no radio groups will be generated
2
11950
by: James P. | last post by:
Help, I need to display radio buttons on a form. The data is from SQL table: each row in each table is displayed as a radio button. I have multiple SQL tables so I understand I need to put them each in a GroupBox. All the examples I saw from the books or from the web show me how to add static radio buttons at design, or dynamically at...
6
1547
by: Tom | last post by:
I have a problem, to which I have been unable to find a solution for days now, after checking numerous references (both in books and online). Perhaps someone here can help. Here's my problem: I'm trying to define a series of radio objects as a large array for a survey, like this: 1) Does this make sense? <input type="radio"...
8
2914
by: johnmmcparland | last post by:
Hi all, my program is trying to add group boxes with radio buttons at run time. While at one point it was able to draw the group boxes without the radio buttons, now it encounters problems just getting the radiobuttons out of the group box. /// area where radio buttons added to groupbox /// this code is wrapped in another loop creating...
1
6865
by: kenny8787 | last post by:
Hi, can anyone help here? I have the following code generated from a database, I want to have javascript calculate the costs of the selected items using radio buttons, subtotal the costs and grandtotal the costs ready for the selected items to be inserted back to the database. I did something like this before with Checkboxes, but...
4
2508
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see all twelve. User2 would see buttons 1-3,10-12 and NOT any others, and so on. Since there are several buttons on the page (each one would run a...
4
3084
by: Z.K. | last post by:
I started a forms application and I put on the form three buttons. In the functions for the radio buttons I put in a single messagebox like: MessageBox("Hello 1") MessageBox("Hello 2") MessageBox("Hello 3")
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8212
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3863
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1447
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.