ASP.NET MVC Route based on Web Browser/Device (e.g. iPhone)
Posted
by Alex
on Stack Overflow
See other posts from Stack Overflow
or by Alex
Published on 2010-05-27T05:57:35Z
Indexed on
2010/05/27
6:01 UTC
Read the original article
Hit count: 231
Is it possible, from within ASP.NET MVC, to route to different controllers or actions based on the accessing device/browser?
I'm thinking of setting up alternative actions and views for some parts of my website in case it is accessed from the iPhone, to optimize display and functionality of it. I don't want to create a completely separate project for the iPhone though as the majority of the site is fine on any device.
Any idea on how to do this?
© Stack Overflow or respective owner