470,566 Members | 1,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,566 developers. It's quick & easy.

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 1563
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

"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_CheckedChanged(object sender, System.EventArgs e)
{
if (F.Checked==true)
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Claes Andersen | last post: by
15 posts views Thread by JR | last post: by
4 posts views Thread by Oscar Monteiro | last post: by
6 posts views Thread by Craig Keightley | last post: by
6 posts views Thread by Tom | last post: by
8 posts views Thread by johnmmcparland | last post: by
4 posts views Thread by Blasting Cap | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.