title: How to override Browser.IsMobileDevice is ASP.NET MVC4 application?
body: <p>I'm looking for a way to set <code>HttpContext.Current.Request.Browser.IsMobileDevice</code> to true for custom mobile devices not dedected by MVC4 and 51degrees.mobi, which is also used in application.</p>
  
  <p>I tried this in Global.asax.cs:</p>
  
  <pre><code>protected void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
  {
      HttpContext.Current.Request.Browser.IsMobileDevice = true;
  }
  </code></pre>
  
  <p>But I got a compile error:</p>
  
  <blockquote>
    <p>Property or indexer
    'System.Web.Configuration.HttpCapabilitiesBase.IsMobileDevice' cannot
    be assigned to -- it is read only</p>
  </blockquote>
  
  <p>51degrees.mobi, jquery, jquery-ui and jquery-ui-mobile are used.</p>