r/ASPNET • u/Nemmie • Jan 12 '12
An approach to mobile support in ASP.NET MVC
http://jclaes.blogspot.com/2012/01/approach-to-mobile-support-in-aspnet.html
5
Upvotes
r/ASPNET • u/Nemmie • Jan 12 '12
2
u/Narfubel Jan 12 '12
I wish he explained his reasons that a different layout and a custom view engine wouldn't work for him. It's the approach I implemented at work, we use ViewStart with a 51 degrees mobile check to decide on layout then we have a custom view engine setup so we can add a mobile folder to any view subfolder if we need a mobile specific view. We try to reuse the same views between desktop and mobile but it doesn't always work out.
3
u/Narfubel Jan 13 '12
I know I already replied once to this but I also wanted to mention that MVC4 will have mobile templates.