Export (0) Print
Expand All

ControlAdapter.Browser Property

Gets a reference to the browser capabilities of the client making the current HTTP request.

Namespace:  System.Web.UI.Adapters
Assembly:  System.Web (in System.Web.dll)

member Browser : HttpBrowserCapabilities with get

Property Value

Type: System.Web.HttpBrowserCapabilities
An HttpBrowserCapabilities specifying client browser and markup capabilities.

A ControlAdapter object determines the client browser capabilities from the HttpBrowserCapabilities object that is returned by the Browser property. This enables the ControlAdapter object to render browser-specific markup or otherwise modify the behavior of the Control.

The following code example shows how to use the Browser property to access the details of the requesting browser. In this example, the code checks to determine whether the browser is compatible with JavaScript, and then allows the developer to render customized output in that case.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft