문제

I'm looking to write an ASP.Net MVC ActionFilter to redirect users of mobiles that aren't in the ambiguos smartphone category to our WAP site. Does anyone know of such code out there?

I've found http://detectmobilebrowser.com/, http://mdbf.codeplex.com/ and http://www.51degrees.mobi/Products/NETMobileAPI already. I prefer the first one's simple use of the useraget as this is a low priority redirect but it doesn't distingues between mobiles and smartphones.

Thanks, Denis

도움이 되었습니까?

해결책

I've only used the MDBF for detecting mobile devices but there is a good example if you download the latest version of nerd dinner from Codeplex. This has a mobile view engine set up to show you how its down. Also Scott Hanselman put an example on his blog here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top