Skip to Content
Programming Visual Basic .NET
book

Programming Visual Basic .NET

by Dave Grundgeiger
December 2001
Beginner
464 pages
13h 51m
English
O'Reilly Media, Inc.
Content preview from Programming Visual Basic .NET

Discovering Browser Capabilities

One of ASP.NET’s strengths is that it accommodates differences in client browsers without requiring any special effort from the application developer. However, it is often desirable for a web application to discover the capabilities of the browser making a given request. For this purpose, ASP.NET makes browser information available to the web application. ASP.NET’s Request object (available through the Page object’s Request property) has a Browser property that returns an object of type HttpBrowserCapabilities. The properties of this object are:

ActiveXControls

Indicates whether the client browser supports ActiveX controls. The type is Boolean.

AOL

Indicates whether the client browser is an America Online browser. The type is Boolean.

BackgroundSounds

Indicates whether the client browser supports background sounds. The type is Boolean.

Beta

Indicates whether the client browser is a beta release. The type is Boolean.

Browser

Indicates the browser string (e.g., "IE") received in the User-Agent header of the HTTP request. The type is String.

CDF

Indicates whether the browser supports Channel Definition Format for webcasting. The type is Boolean.

ClrVersion

Indicates the version of the .NET CLR installed on the client (if any). The type is Version (defined in the System namespace).

Cookies

Indicates whether the client browser supports cookies. The type is Boolean.

Crawler

Indicates whether the client browser is a web crawler (an automated program used ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Visual Basic .NET, Second Edition

Programming Visual Basic .NET, Second Edition

Jesse Liberty

Publisher Resources

ISBN: 0596000936Supplemental ContentCatalog PageErrata