954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to make validation of Radio Button in C#

Hi,
Im using 2 radio buttons for male and female as gender. So wat would be datatype for this variable in MS SQL Database. I tried a lot bt it troubled me some where a bit. Whenever im saving the radio button data in DB the problem i find is in the code of the Save bt event....


Regards,
Abhishek.........

Abhishek_Boga
Newbie Poster
20 posts since Feb 2009
Reputation Points: 9
Solved Threads: 0
 

A radio button is just one way to represent gender in a user interface. What about a combobox with 2 options : male, female?
How to store that info in a DB depends on the designer of the DB. You could use a boolean, one character 'M' for male 'F' for female etc.

ddanbe
Senior Poster
3,829 posts since Oct 2008
Reputation Points: 2,070
Solved Threads: 661
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You