开发者

MVC3 application custom route

开发者 https://www.devze.com 2023-02-25 01:23 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消