Determining Browser Capabilities

Web browser compatibility has been a thorn in the side of many developers. Typically, you'll write code that executes perfectly in one browser, only to watch it blow up in another (or worse, the same browser but different versions). Additionally, you may choose to offer users personalization by storing their user IDs inside a client-side cookie. This feature should not work the same for those users with browsers that do not support cookies (or that have cookies turned off). To trap this information, the .NET Framework Class Library gives us the HttpBrowserCapabilities class.

Detecting Browser Information

Browsers are classified into the two groups: uplevel and downlevel. Downlevel browsers provide support for ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.