Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hell0 i want to save the data in the database using to cheqbox if the user select the multipal answer the all selected answer store to the database please give me solution...
thank u......
Posted
Comments
Sandeep Mewara 19-Jul-12 3:01am    
And what is the issue? What have you tried so faR?

for int i=0;i<chkbox.items.count;i++>
{
if chkbox.items[i].selected == true then
{
do your stufff database operation
}
}
 
Share this answer
 
The obvious way to send an arbitrary amount of data to sQL server is to pass it as XML and use OpenXML to parse it and put it in to your DB. Or you can call SQL Server one per bit of data, but that's so obvious and easy that i assume that's not what you want to do.
 
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