Link to home
Start Free TrialLog in
Avatar of MichelleLacy
MichelleLacy

asked on

Radio button Validation

I have three radio button in a group box.  I want to validate that one of them is selected before the user can submit the form.  How do I do this?
Avatar of gdupadhyay
gdupadhyay
Flag of United States of America image

You need to check it RadioButton_name.Checked method. Its apply for all three. Its return true or false.

Avatar of MichelleLacy
MichelleLacy

ASKER

what would the code look like?
ASKER CERTIFIED SOLUTION
Avatar of gdupadhyay
gdupadhyay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For client side validation, you need to write a function in java scripts and call that function OnClick event of submit button.

For more information, Please look into this link.

http://forums.asp.net/t/1286011.aspx
http://forums.asp.net/p/1038988/1443069.aspx
If you have any question regarding above link, please let me know.


Thanks
Ganesh