This tutorial will show you how to gather your web browser capabilities using ASP.NET 2.0 and C#.

The class of HttpBrowserCapabilities will enable the server to gather information on the capabilities of the browser that is running on the client. Namespace of this class: System.Web.

First, import the namespace of System.Web:

In order to use the class of HttpBrowserCapabilities, we need initialize an instance of Request.Browser object. Then we can use this class to list IE properties.

The front end Default.aspx page looks something like this:

Download Source Files