Forum Moderators: open

Message Too Old, No Replies

Browser Detection for .NET

Browser Detection for .NET

         

paul_owen

11:50 pm on Jun 15, 2010 (gmt 0)

10+ Year Member



What is the current "standard" for browser dectection for the .NET Framework?

Is the browsecap.ini file still in use?

Thanks,
Paul.

marcel

2:12 pm on Jun 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Paul,

AFAIK there are a couple of people keeping up to date versions of browser definition files.

- the Browser Capabilities Project [browsers.garykeith.com] by Gary Keith
- and the browser identification project [owenbrady.net] by Owen Brady (Ocean10000)

Ocean10000

3:10 pm on Jun 16, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The .Net Framework, has 3 different versions to identify browsers depending on the version of the framework. Version 2 to 4 use .browser definition files, while version 1 used a section in the web.config to manage the definitions. No mater which version of .Net used, the object structure to determine the capabilities remained largely unchanged.


Reference:
How to: Detect Browser Types in ASP.NET Web Pages [msdn.microsoft.com]
HttpBrowserCapabilities [msdn.microsoft.com]

paul_owen

4:20 pm on Jun 16, 2010 (gmt 0)

10+ Year Member



Thank you.