Click here to Skip to main content
15,662,459 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using listview control and in that checkboxList. if i select any checkbox and goes to 2nd page and again i come back to 1st page then it doesnt remain selected checkbox true because i am binding new data bur how to retain old values...? plz help..
Updated 19-Sep-13 19:25pm

1 solution

When you redirect your page from one to another. your control value will not be preserved for the previous page when you come back again here.

To do this you must have to store value of the selected checkboxes in in-memory like 'Session'

and when you come back again on this page check that whether this session has value or not. and if it has values than you can get values of the checkbox and make it checked.
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