Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Determine OS from BrowserCap

Determine OS from BrowserCap

Scheduled Pinned Locked Moved ASP.NET
asp-netcombeta-testinghelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Justincc
    wrote on last edited by
    #1

    I updated my BrowserCap with the one found here http://www.codeproject.com/aspnet/browsercaps.asp When I view my test page (http://www.prosoco.com/browsercheck.aspx) It renders my OS as NT. I have XP and I need to get XP. There is a filter in the updated BrowserCap that does this: os="Windows Vista" os="Microsoft Windows XP" os="Microsoft Windows 2000" etc... However <%=Request.Browser.os()%> just gives me an error ('os' is not a member of 'System.Web.HttpBrowserCapabilities'.)... **** Does anyone know how I can get my OS to come across as XP and not NT? **** I know NT5+ is aka XP, but this causes problems in my existing statistics. I am using ie7. Which it should pick up that it is a beta, but it doesnt. Justin

    M 1 Reply Last reply
    0
    • J Justincc

      I updated my BrowserCap with the one found here http://www.codeproject.com/aspnet/browsercaps.asp When I view my test page (http://www.prosoco.com/browsercheck.aspx) It renders my OS as NT. I have XP and I need to get XP. There is a filter in the updated BrowserCap that does this: os="Windows Vista" os="Microsoft Windows XP" os="Microsoft Windows 2000" etc... However <%=Request.Browser.os()%> just gives me an error ('os' is not a member of 'System.Web.HttpBrowserCapabilities'.)... **** Does anyone know how I can get my OS to come across as XP and not NT? **** I know NT5+ is aka XP, but this causes problems in my existing statistics. I am using ie7. Which it should pick up that it is a beta, but it doesnt. Justin

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, What you might need is the Platform property of the HttpBrowserCapabilities class. For more information, you can check out some links below: HttpBrowserCapabilities Members[^] browserCaps Element[^] Determining Browser Capabilities in ASP.NET[^]

      J 1 Reply Last reply
      0
      • M minhpc_bk

        Hi there, What you might need is the Platform property of the HttpBrowserCapabilities class. For more information, you can check out some links below: HttpBrowserCapabilities Members[^] browserCaps Element[^] Determining Browser Capabilities in ASP.NET[^]

        J Offline
        J Offline
        Justincc
        wrote on last edited by
        #3

        the Platform property gives my WINNT 5.1, and not Windows XP. That is the purpose it seems of the section in the browserCap section, to associate platformslike 'WinNT 5.1' with their OS names 'Windows XP' I know I could take the time to build case statements for this, but seeing the data already in the browsercap that makes the association is defeating, since I cannot seem to access it. There must be a variable I can use that wouold access the 'os' variable listed in the browsercap. still needing help... Justin

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups