Search code examples
asp.nethttpbrowsercapabilities

Has anyone got HttpBrowserCapabilities working in asp.net


HttpBrowserCapabilities browse = Request.Browser; just seems to bring back IE or Netscape for all other browsers.

I have updated the C:\WINDOWS\system32\inetsrv browscap.ini file on the developer pc that has asp.net c#.

My requirement is to trap the clients browser in server side code.

Thanks.


Solution

  • This is the version for 1.1 for Dot.net

    http://owenbrady.net/browsercaps/CodeProject.xml

    You have to copy it into the proper area in your web.config though.