Planning to create a new website for our product using ASP.NET MVC 4. Site should support Desktop, Tablet and Few mobile platforms (WP7, IOS, Android).
Do we need to create View for each platforms like below? Or what is best preferred approach to have multiple platform and screen support
Desktop – > Views/Shared/Logon.cshtml
Tablet – > Views/Shared/LogonTablet.cshtml
Mobile – > Views/Shared/LogonMobile.cshtml
Thanks,
Velus
Checkout ASP.NET MVC 4 display modes. They allow you to render a specific view based on the User Agent. And if you need to use ASP.NET MVC 3 there’s a NuGet for you which is spec-compatible with the upcoming release of ASP.NET MVC 4.