Click here to Skip to main content
15,888,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI..
I have two radio button one is dedicated and another is leveraged.I want to store "true"if someone clicks dedicated and if someone clicks leveraged it will store "false" in the database.Can somebody help me in this
Posted
Comments
Dr.Walt Fair, PE 21-Aug-11 23:48pm    
Are the buttons linked tot he DB or do you need to do it programmatically?
Ankur\m/ 22-Aug-11 1:00am    
You could have a bit field in your database. On the front end, check the selected property, and based on the selection pass 0 or 1 to the database. While you retrieve, interpret 0, 1 accordingly.
Where is the problem exactly?

1 solution

If you want to map the radio button value directly to the database columns, then there are 2 solutions:

Solution 1: Using ASP .NET Dynamic Data
Solution 2: Using LInQ to Entity framework

Both solutions contains built in code; very less coding from the developers.
 
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