Asp.Net 5 MVC 6 detect mobile browser
How is it possible in Asp.Net 5 MVC 6 to detect if the user is on a mobile device? In previous version of Asp MVC it could be done like this: Request.Browser.IsMobileDevice The problem is that the namespace System.Web is not used by Asp.Net 5 . The Request variable in the controller actions is now of type Microsoft.AspNet.Http.HttpRequest , the old version was of type System.Web.HttpRequestBase . Microsoft.AspNet.Http.HttpRequest does not contain the Browser property. I tried looking through other properties, but didn't find anything. EDIT: as requested some resources that prove that Asp.Net 5