I want to create a custom route that will see that if a coming request is from IPhone. If so then redirect to view 1 otherwise redirect to view2. How can I do it using MVC3 application.
Regards,开发者_开发百科 Asif Hameed
I think this answers your questions:
Format ASP.Net MVC app for desktop and mobile browser
Good article here: How to Add Mobile Pages from asp.net, about 3/4 of the way down specifically for doing this in mvc, also includes routing examples.
精彩评论