Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi how to send radio button selected value to database
Posted
Comments
swapnilKumbhar 23-Apr-12 2:41am    
What actually??
you want to store caption of radio button OR Particular value.
Lalit PB 24-Apr-12 7:48am    
What value you want to send to database? is it Radio button's selected value true/false or radio button's text?

 
Share this answer
 
Comments
sravani.v 23-Apr-12 2:44am    
Oh! Same answer.But I didn't see you
Hi,


In case You are using RadioButton Only:
Then,
C#
radioButton1.Text
will work for you.

But Incase you are using RadioButtonList, then:

C#
radioButton1.SelectedItem.Value
 
Share this answer
 
 
Share this answer
 
Comments
sravani.v 23-Apr-12 3:02am    
Some one down voted my solution. May I know reason for down vote?
write a manager class to add the selected value to the database.
Return the datatable to the program.cs.
In the Column of Selected just update the selected index value.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900