Home > DeveloperSection > Interviews > What is the use of Display Modes?

Posted on    October-10-2014 11:29 PM

 1 Answer(s)
  977  View(s)
Rate this:

Kamlakar Singh
Kamlakar Singh

Total Post:80

Posted on    October-10-2014 11:29 PM

§  View can be changed automatically based on browser(For mobile and desktop browser’s)

Display Modes is newly added feature in ASP.NET MVC 4. Views selected automatically by application depending on the browser. Example: If a desktop browser requests login page of an application it will return Views\Account\Login.cshtml view & if a mobile browser requests home page it will return Views\Account\Login.mobile.cshtml view.

Don't want to miss updates? Please click the below button!

Follow MindStick