Click here to Skip to main content
15,895,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am having a list view which contains multiple values.And i am having a check box in the header and the checkboxex in each of the list view.When i select the checkbox in the header it has to select all the values and when i click the save button all the details has to be saved to the database.
And when we select multiple values directly in the listviews also it also has to be saved to the database.

How can i able to save to the database.Please provide me any example or link
that will provide me solution


Thanks and Regards,
Priya
Posted

1 solution

 
Share this answer
 
v3
Comments
priya0143 22-Aug-12 7:35am    
Hi santosh,

Thank you for the solution
It worked but i have tried it another way.
Now i am able to select the listviews and able to save those listview id to
the database.Now what i require is when the user saves the particular field
to database the field must be always checked in the checkbox

For eg:
I have 5 list view items with ids 1,2,3,4,5
now i have saved 1,2,3 to the database and closed my session
and when i reopen the page again it must show the id's 1,2,3 are
selected and when user unselect the database and save clicked it
must delete from database

Hope you will understand my question



Thank you
Priya
Santhosh Kumar Jayaraman 22-Aug-12 7:45am    
Yes i got your question. So what you have to do is when you got load items into listbox from database. You have to put a check, whether that record is present already in the database, If its present, then set checked =true.
Santhosh Kumar Jayaraman 22-Aug-12 7:56am    
If it works, please mark it as accepted
priya0143 23-Aug-12 5:31am    
How can i do that check when i am loading from 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