MVC Developer Question:

Download Job Interview Questions and Answers PDF

Tell us what is display mode in MVC?

MVC Developer Interview Question
MVC Developer Interview Question

Answer:

Display mode displays views depending on the device the user has logged in with. So we can create different views for different devices and display mode will handle the rest.

For example we can create a view “Home.aspx” which will render for the desktop computers and Home.Mobile.aspx for mobile devices. Now when an end user sends a request to the MVC application, display mode checks the “user agent” headers and renders the appropriate view to the device accordingly.

Download MVC Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us what are the Difference between ViewBag&ViewData?Tell us which approach provides better support for test driven development - ASP.NET MVC or ASP.NET Webforms?