You are developing an ASP.NET MVC news aggregation application that will be deployed to
servers on multiple networks. The application must be compatible with multiple browsers. A
user can search the website for news articles. You must track the page number that the user
is viewing in search results. You need to program the location for storing state information
about the user’s search. What should you do?
A.
Store search results and page index in Session.
B.
Use Application state to store search terms and page index.
C.
Use QueryString to store search terms and page index.
D.
Store search results and page index in TempData
Thanks Admin.
wrong answere, you cannot store user’s searchs in url query string
answere A who stores thoses infos in Session seems a really better solution
“application that will be deployed to servers on multiple networks”. You can not use session in this case.
Yes, you can. Answer correct is C.
C is correct!!