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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.