In MVC Display mode displays views depending on the device the user has logged in with. So we can create different views for different devices anddisplay 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.
Liked By
Write Answer
Explain the need of display mode in MVC?
Join MindStick Community
You have need login or register for voting of answers or question.
Manish Kumar
16-May-2017In MVC Display mode displays views depending on the device the user has logged in with. So we can create different views for different devices anddisplay 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.