Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7638541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:11:58+00:00 2026-05-31T08:11:58+00:00

In my ASP.NET MVC 3 web application I am overriding the View name in

  • 0

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 Request.Browser.IsMobileDevice and the device’s native display width.

51degrees.mobi feels very heavy and convoluted for this simple use case. Maybe that is just my frustration at trying to wade through all of the examples and documentation on the 51degrees web site to get answers to what seem like simple questions for a simple implementation.

Absent 51degrees, I do get values for Request.Browser.IsMobileDevice and Request.Browser.ScreenPixelsWidth. I’ve noticed that for desktop browsers the width is always 640 whereas Request.Browser.Capabilities["51Degrees.mobi"] contains a value of “Unknown” for ScreenPixelsWidth. I guess the Unknown value is more accurate given the server-side nature of the implementation.

My main question is: do I really need 51degrees for my simple requirements?

If I don’t use 51degrees, are there some specific examples of browsers that I will fail to detect IsMobileDevice and the screen width correctly? For example will the built-in .NET Request.Browser.IsMobile and ScreenPixelsWidth values be inaccurate or absent for the new iPad when it comes out or for the latest Android browser version? My site gets about 65% mobile users, many on lame feature-phones with browsers like the UP.Browser, so getting mobile right is somewhat important.

If I use 51degrees, do I need to always drill down into Request.Browser.Capabilities[“51Degrees.mobi”]? Or does 51degrees override/update the value of Request.Browser.IsMobileDevice to be in synch with its evaluation of the browser? Clearly it does not override Request.Browser.ScreenPixelsWidth.

I am open to answers of “you are doing it wrong, here is a better way” as long as they are not suggesting MVC 4 or involving a paid solution such as WURFL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T08:11:59+00:00Added an answer on May 31, 2026 at 8:11 am

    This FAQ explains which properties of Request.Browser are overridden by 51Degrees.mobi.

    There are very few cases where you should ever access the “51Degrees.mobi” key directly. Where the property has been overridden access it as you normally would. Where the property is not overridden or not covered by HttpBrowserCapabilities you should use the property name. For example:

    var isTablet = Request.Browser[“IsTablet”];

    See this link for a list of available properties.

    As it should overriden ScreenPixelsWidth I’d be interested to know more about your test environment. As .NET requires the value to be numeric if 51Degrees.mobi can not determine the size (Unknown) then the value will not be overridden.

    Thank you for considering 51Degrees.mobi.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET MVC web application that implements a custom membership provider. The
In my ASP.NET MVC 2 web application, I allow users to create custom input
I have a Asp.net MVC web application, containing mostly text. I want to put
I have developed a MVC web application with ASP.NET MVC and im just wondering
We want to split our large asp.net mvc web application into multiple Visual Studio
I am thinking about creating my new asp.net mvc web application compatible with native
I'm currently working on an Asp.net MVC Web application. In my solution, there're two
What are the licences required for an asp.net (MVC) web application using sql server
I'm using a ExtJS DateField control in an ASP.NET MVC web application. I've set
I want to outsource the design of my Asp.Net Mvc web application. How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.