Maintain the status of checkbox in listview

Jun 14 2010 8:18 AM

Hi,
I have a listview that binds data using sqldatasource. I have used DataPager to show 20 records per page. Each row has a check box in the last cell. My issue is that I am not able to maintain the status of the checkbox when navigating between pages. For example, if I select a couple of check boxes on the first page, navigate to the second page, select a couple more and navigate back to the first page, the status of checkboxes are lost. I am at a loss to find out how to maintain the status of the checkboxes.
Once the status of the checkboxes is maintained, I want to write each of those lines into the database on a button click after appropriate selections are made.
Any help please.
Thanks and Regards,
Mohan

Answers (3)