How does MVC4 detect a mobile browser?
问题 I've just followed Scott Hanselmans tutorial on making a switchable site in MVC4. I'm using the Opera mobile emulator to test as I don't have VS2102. When rendering my page in the emulator Request.Browser.IsMobileDevice is false although it still renders the mobile view. My questions are: Why/How does MVC4 decide to render the mobile view? It doesn't seem like it looks at Request.Browser.IsMobileDevice . Will the View Switcher be displayed on a real mobile device? Edit: I think I realised my