Saturday 15 June 2013

asp.net - How does IsMobileDevice work? -


This makes it easier to locate a mobile browser:

  if (Request. Browser ["IsMobileDevice"] == "true") {Response.Redirect ("MobileDefault.aspx"); }  

Actually, it seems that you can only check the request. Browser.IsMobileDevice But how does this actually work? I have one. Not even a browser file ... What's going on behind the scenes here? Are there some built-in defaults for ASP.NET 2.0?

Many * Browser files are sent with .NET:

  c: \ Windows \ Microsoft.NET \ framework \ v2.0.50727 \ CONFIG \ browser  

Runtime incoming user-agent sets * .browser files to match against string, and then sets a bunch of properties based on each match (which can be many in the municipality).

If you consider installing in-depth mobile device support, MDBF, which adds support for approximately 400 devices:


No comments:

Post a Comment