Click here to Skip to main content
15,878,959 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
i ve 2 checkbox ,c# and asp.net ,if i select the 2 checkbox or one ,i want to save the record in database , if i select 2 mean i need to save with " ," how can i bind in for loop
Posted
Comments
Supriya Srivastav 11-Jan-12 8:00am    
Your question is not clear.
mayankshrivastava 11-Jan-12 8:14am    
can't understand ?
Please clear it.
priya from Madras 11-Jan-12 8:56am    
Sorry all ,

Actually i have 2 checkbox(checkbox1 is .Net,and checkbox2 is java) under the name course,i need to bind the selected value in database.for example ,if user select
2 checkbox (.net and java)mean i want to bind these values in database with "," lik java , .net.
jpratik 11-Jan-12 9:00am    
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkboxlist.aspx

1 solution

So Just Concatenate both the values from CheckBoxList, obviuosly after applying loops!
 
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