You need to program the location for storing state information about the user’s search

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?

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



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Johnson

Johnson

Thanks Admin.

viv

viv

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

Edgar

Edgar

“application that will be deployed to servers on multiple networks”. You can not use session in this case.

Jesús

Jesús

Yes, you can. Answer correct is C.

serk

serk

C is correct!!