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 6936465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:14:13+00:00 2026-05-27T12:14:13+00:00

I have .NET website that is mainly built for desktop browsers but I’m currently

  • 0

I have .NET website that is mainly built for desktop browsers but I’m currently making a mobile version of it. What I’m trying to do is load the website according to the device on which it is accessed by the user. Is there a way that I can get information about the user’s device when they request the site?

Regards,
Sumit.

  • 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-27T12:14:13+00:00Added an answer on May 27, 2026 at 12:14 pm

    As suggested by others you can use the System.Web.HttpBrowserCapabilities class accessible through Request.Browser however without updated browser definition files the information is completely worthless.

    For example, if you use Request.Browser.IsMobileDevice this should give you what you want, but is based on a set of very dated regular expressions in your .NET framework folders in Windows.

    You can see the kind of problems that can be encountered on a (currently unanswered and unloved) post here on Stack Overflow.

    If you do not plan on keeping the browser definition files up to date (which is no small task) then quite simply do not go down this route.

    If you simply want to know whether the user is viewing on a mobile device then here are a few options:

    • Detect Mobile Browsers
    • 51Degrees.mobi
    • WURFL
    • User Agent Info

    Some of those are free, some aren’t and if you are really only interested in whether it is a mobile device, my recommendation would be to use Detect Mobile Browsers.

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

Sidebar

Related Questions

I have a website (http://nottingham.subverb.net) that is mainly made up of messy procedural code
I have an ASP.NET website that I built that has grown considerably in size
We currently have an asp.net website that we use to generate html emails. Basically
I have a ASP.Net 2.0 website that is currently using a custom MembershipProvider and
I have an ASP.NET website that is contacting a webservice. Everything works fine connecting
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have an asp.net mvc website that returns a JSON result to certain pages
I have a few pages on my asp.net website that I would like to
So I have this ASP.Net 2.0 website that uses functions contained within a JS
I have a asp.net website and I am accessing that web service from my

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.