---
title: "Explain the need of display mode in MVC?"  
description: "Explain the need of display mode in MVC?"  
author: "Manish Kumar"  
published: 2017-05-16  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/23248/explain-the-need-of-display-mode-in-mvc  
category: "c#"  
tags: ["c#", "mvc4"]  
reading_time: 1 minute  

---

# Explain the need of display mode in MVC?

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.

## Answers

### Answer by Manish Kumar

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.


---

Original Source: https://www.mindstick.com/interview/23248/explain-the-need-of-display-mode-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
