Determine OS from BrowserCap
-
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
-
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
Hi there, What you might need is the
Platform
property of theHttpBrowserCapabilities
class. For more information, you can check out some links below: HttpBrowserCapabilities Members[^] browserCaps Element[^] Determining Browser Capabilities in ASP.NET[^] -
Hi there, What you might need is the
Platform
property of theHttpBrowserCapabilities
class. For more information, you can check out some links below: HttpBrowserCapabilities Members[^] browserCaps Element[^] Determining Browser Capabilities in ASP.NET[^]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