   [.net] Inserting checkbox values into one field
  hiI have a checkboxes on my page (.aspx) likecheckbox1 - item1checkbox2 - item2checkbox3 - item3etcwhat i want is that when a user selects certain checkboxesthey should be inserted into a table calledcustomer which has fields (customer id and actions)the data should be inserted ascustomerid actions1 item1,item2,item32 item1,item33 etc..i.e all the values should be inserted into database into one field separated by commas.Thanks[Edited by - ebosysindia on May 27, 2009 6:18:28 AM]
  1) Create an event that reacts to the checkbox selected event2) Enumerate all your checkboxes and retrieve their checked property3) Place their names in a string[] array4) Use string.Join to build a comma-separated string 5) Save the string to the database   ;Quote:Original post by Magos1) Create an event that reacts to the checkbox selected event2) Enumerate all your checkboxes and retrieve their checked property3) Place their names in a string[] array4) Use string.Join to build a comma-separated string 5) Save the string to the databaseHey Friend,Can you please give me solution with coding for this, because i am very confusing and i can't get proper answer related this question. so, please do helpfulThanks in advance :)   ;  This isn't some sort of homework question, is it?I don't think anyone is just going to give you a solution without you actually putting in some sort of effort on your part.   