This project is read-only.

how can i maintain state while paging

Mar 13, 2011 at 3:44 PM

Hi, 

I have been successfully using your paging lib. I have even managed custom route with ajax paging. But now i have a requirement where if the checkboxes in the form are selected i need to remember the state when i move to the second page.

Could you give any suggestions?

I could get the values using FormCollection in a normal action. But in a custom route action how can i achieve the same ? I am currently receiving the cityid and paging index in my action. How can i get the values of the selected checkboxes? 

 

Thanks

Apr 9, 2011 at 9:19 AM

You can use Request.Form["checkboxName"] to get values of selected checkbox.