I have created news website in MVC
.
I have search functionality on it.
When Index
Action
of Search
Controller
is called, it fetches records from database
, it returns Search View.
This Search View has AJAX Pager
for paging, when Next or Previous button of Pager is clicked, AJAX
request is made to Paging Action
of Search Controller
.
Now I don't want again to make call to my Database
. I want to use results which were fetched during Index action
of Search Controller
.
For now I have used Session[""]
object.
I want to know what is better to used for state management in this scenario.
Results fetched from database can be around 1000-5000, ArticleName
, ArticleShortDescription
(~200 characters)