Can we cache Model in Partial View if not NULL.
So that if my page make a round trip it will still have values in model.
Because i have an action that returns a list of records based on search parameters.
and that list is bound to the grid.
This grid has paging.
so when i click on 2nd page, this grid is making a round trip to the partial view and second time the model in that partial view is empty.
Can any one suggest a best approach to not to loose data in model.
here i can’t do output cache for the Action that returns result list.
any idea would be greatly appreciated.
thanks
You can add the Cache attribute to your controller, it works a treat.