Detecting Requests from Mobile Browsers in ASP.NET

Posted by Josh Stodola on Stack Overflow See other posts from Stack Overflow or by Josh Stodola
Published on 2010-04-16T14:40:29Z Indexed on 2010/04/16 14:43 UTC
Read the original article Hit count: 351

I have an existing web site and I would like to create a mobile version of it that is more suitable. For instance, the main site uses drop-down menus and we all know those are quite the fail on mobile devices.

I would like to redirect to my mobile version (it will be a subdomain of the current site) if I detect a request from a mobile browser. So when they Google something and come to my site, they will automatically see the mobile version (just like Wikipedia).

Does ASP.NET provide an easy way of doing this? If not, how can I do it?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mobile-website