Question 160


Exam Question

Drag and Drop
You are developing an ASP.NET MVC application in a web farm. The application has a page that uploads a customer’s photo, resizes it, and then redirects the browser to a page where the new image is displayed along with the final dimensions.

The final dimensions should be available only to the page where the new image is displayed.

You need to store state and configure the application.

What should you do?

  • TempData
  • ViewData
  • InProc
  • SqlServer
Store state in
    and set the mode attribute of the sessionState element in the web.config file to

      Answer:

      • ViewData
      • InProc
      Store state in
      • TempData
      and set the mode attribute of the sessionState element in the web.config file to
      • SqlServer