Questions tagged [51degrees]

.NET library for detecting devices and browsers. Also available for Java, C and PHP.

This project, called "Foundation", is just one of 51Degrees.mobi components for mobile web development. It’s provided as a .NET open source class library that detects mobile devices and browsers, enhancing the information available to .NET programmers. Using 51Degrees.mobi Device Data, accurate screen sizes, input methods, plus manufacturer and model information are all available. Mobile handsets can optionally be redirected to content designed for mobile devices. Smart phones, tablets and feature phones are all supported.

The .NET solution is available at: https://github.com/51Degrees/dotNET-Device-Detection

The Java, C and PHP solutions can be downloaded from SourceForge.

57 questions
16
votes
1 answer

Is it possible in ASP.NET to derive the browser MajorVersion from the HTTP request's user agent string alone?

We have an application which uses Request.Browser.MajorVersion as part of a cache key. We have a challenge to determine which cache key was used for a set of historic requests. To do this we're analysing IIS logs so need to determine what the value…
Tom Troughton
  • 3,233
  • 2
  • 25
  • 55
7
votes
2 answers

51Degrees reloading on each request slows ASP.NET MVC to a crawl

My ASP.NET MVC 3 project slows to a crawl after adding the 51Degrees mobile detection library. The 51Degrees log file defined by in the section reveals that the device library is…
Petrus Theron
  • 25,051
  • 30
  • 137
  • 263
7
votes
4 answers

Detect iPad with ASP.net

I want to detect if a mobile device is an Tablet (iPad) or not in ASP.net I had a look at 51degrees project but the function to detect a tablet isn't available in the free version - and since we distribute our ASP.net solution to 100's of customers,…
Konrad
  • 3,623
  • 7
  • 38
  • 72
6
votes
1 answer

ASP.NET MVC 3 simple and reliable mobile device detection: use 51degrees.mobi or go native?

In my ASP.NET MVC 3 web application I am overriding the View name in a custom view engine to present a different view optimized for non-tablet mobile devices. All I want to perform this view override is an accurate value for…
Pat James
  • 4,339
  • 24
  • 39
6
votes
2 answers

Check if a mobile device is requesting the desktop site

I'm using 51 degrees on my MVC site as an adaptive approach to serving my pages. All is working well. I have recently added output caching and I use the VaryByCustom to check whether it is mobile or desktop: public override string…
user1987162
5
votes
2 answers

Redirecting to a mobile sub-domain using 51degrees

I'm using the 51degrees API for mobile redirection: http://51degrees.codeplex.com/ The desktop site is located at http://www.mydomain.com. The mobile site is located at http://m.mydomain.com. When a mobile device is detected, using 51degrees, I am…
Jaimal Chohan
  • 8,193
  • 6
  • 40
  • 62
4
votes
5 answers

Alternative to 51degrees.mobi?

Since the mobile detection solution for ASP.NET 51degrees.mobi became commercial (the lite version isn't really useful anymore), I'm looking for an alternative solution. Are there any other OpenSource or free projects, that enhance the detection of…
Konrad
  • 3,623
  • 7
  • 38
  • 72
3
votes
1 answer

Create WURFL patch matching partial user-agent

I'm using WURFL to identify whether a user is on a mobile device. Some User-Agent strings are incorrectly recognized as mobile devices which in turn causes the content-type to be set incorrectly. Here an example of a real life user agent behaving…
marapet
  • 49,690
  • 10
  • 152
  • 168
3
votes
0 answers

51Degrees Memory Consumption

I'm crossing posting this from the 51degrees forums as it hasn't gotten much traction there. I went ahead and implemented the latest NuGet package version of 51Degrees into a site we manage here at work. (2.19.1.4) We are attempting to bring in…
Khepri
  • 9,297
  • 5
  • 41
  • 60
3
votes
2 answers

51Degrees redirect root only

How do I configure the 51Degrees element as described in the documentation to only redirect requests made to the root address at http://mydomain.com/ to a mobile address (e.g. http://mydomain.com/m), but not requests made to any other…
Petrus Theron
  • 25,051
  • 30
  • 137
  • 263
2
votes
1 answer

51Degree.mobi and Razor

I create a ASP.net MVC 4 project by using Visual Studio 2010 IDE. I want to make sure that my web application could run at Desktop PC as well as Mobile Browsers which is not the same sizes and properties. After learning from this, I found that I…
Frank Myat Thu
  • 4,172
  • 9
  • 61
  • 112
2
votes
1 answer

GetOverriddenBrowser() for ASP.NET MVC 3

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…
Petrus Theron
  • 25,051
  • 30
  • 137
  • 263
2
votes
1 answer

iPhone & 51degrees.mobi integrated in a ASP.NET MVC website

I'm providing my ASP.NET MVC website with a mobile version. Let's say that the web site is www.mywebsite.com and the mobile version will be www.mywebsite.it/Mobile. As first capability I would be able to identify if a mobile device is invoking…
FoxIceIT
  • 23
  • 2
2
votes
2 answers

How do I detect a touch screen mobile device using 51degrees.mobi

I am using the MobileViewEngines describe here by Scott Hanselman, and the 51Degrees.mobi browser database to render different views for mobile and desktop browsers. I now want to add a middle ground. For High-End mobile browsers (apple, android,…
robasta
  • 4,491
  • 5
  • 32
  • 53
2
votes
1 answer

How to use Css Media to differentiate high-res mobile in landscape mode from PC?

I have a PC with a resolution of 1280x1024, and a smartphone Lumia 920 with a resolution of 1280x768 when used in landscape mode. Can I use css Media query to make the difference between the 2 ? Because the text is rendered too small on the…
Yahia
  • 687
  • 5
  • 21
1
2 3 4