Say I have an ASP.Net MVC webiste hosted at www.somedomain.com. Now I am interested in providing a mobile version at m.somedomain.com. Do I need to completely rewrite the site or can MVC detect the browser type and route through to mobile optimised pages automatically?
+2
A:
You can detect the browser type and do routing, but you have to do some work yourself - it's not really built in. Scott Hanselman has some great example code here:
Mix: Mobile Web Sites with ASP.NET MVC and the Mobile Browser Definition File
Simon Steele
2009-05-08 12:23:49