problem with Radio Buttons

S

SenthilVel

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
 
G

Guest

Hi SenthilVel,

the following code can solve your problem.

private void MSDE_CheckedChanged(object sender, System.EventArgs e)
{
if (F.Checked==true)
F.Checked=false;

T.Checked=true;

}
Cheers,

Jerome. M
 
G

Guest

Hi SenthilVel,

the following code can solve your problem.

private void MSDE_CheckedChanged(object sender, System.EventArgs e)
{
F.Checked=false;
T.Checked=true;
}

private void DSN_CheckedChanged(object sender, System.EventArgs e)
{
T.Checked=false;
F.Checked=true;
}

Cheers,

Jerome. M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top