asp.net mvc 2 - Redirect action to mobile view -


public actionresult home()         {             return view();         } 

this have current site within homecontroller. how can detect if action called mobile device, , if is, re-direct mobilehome.aspx instead of home.aspx.

i don't need know details of device, because implementing view in jquery mobile, should adjust correctly depending on view it's rendered in.

you may find following blog post useful.


Comments

Popular posts from this blog

how to build hyperlink for query string in php -

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

queue - mq_receive: message too long -