ASP.NET MVC 4 has some nice mobile features which are replacing my mutant mobile view engines, but until it's production ready, I'd like to implement the browser override feature for ASP.NET MVC 3.
SetOverriddenBrowser()
seems to set a .ASPXBrowserOverride
cookie with an overriding User Agent that returns an HttpBrowserCapabilitiesBase
object via HttpContext.GetOverriddenBRowser()
.
What would be the simplest way of implementing this feature for MVC 3 to make use of the mobile detection library, including 51Degrees.mobi?