Click here to Skip to main content
16,012,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me out in saving the values of checked checkboxes of a treeview to a table
in database

please help me with the insert code also
Posted
Updated 27-Apr-12 20:46pm
v2
Comments
Ashish Bhujbal 28-Apr-12 2:49am    
Please give more details about your question, so one can help you.

Also provide, what you have tried and where you have stucked......
jaideep2943 28-Apr-12 2:54am    
i have a XML file of menu i am Displaying it on another Page using XML data source in treeview with check boxes. of the menus and sub menus . Now i want to save the selected check boxes in to sql server .i have a create user page in that i have to select multiple check box and save it in database for that single user. i am not able to insert all the selected check boxes values into database

help me.

1 solution

Hi Jaideep,

This is what I understood from your comment.

You are displaying treeview of menus and submenus with check boxses and you want to save values for selected check boxses for that particular user.

In this case, you can store data in comma separated format.
And while fetching that data use split function at the back end.
For split function, may this LINK will help you.

All The Best!
 
Share this answer
 
Comments
Ashish Bhujbal 28-Apr-12 3:32am    
http://blog.logiclabz.com/sql-server/split-function-in-sql-server-to-break-comma-separated-strings-into-table.aspx


this link is better than previous one for split function.
jaideep2943 28-Apr-12 3:43am    
thanx ashish
if you could help me with a code snippet that would be appreciated
please
jaideep2943 28-Apr-12 3:44am    
need code for saving the checked checkboxes into database

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