This tutorial will show how to reference the Browser object to retrieve information about what your client can display. C# version. In this tutorial, we reference the Browser Object to display information about both the Client and the Browser. This could help us determine how our users see our page, depending upon their settings. These could also help us display our page differently so that our users get the most out of the site, no matter what their set-up.
The text attribute of each label in the ASPX page will be dynamically changed upon runtime, depending upon the user configuration / browser.
First, let’s create a layout to display the information:

The following code checks for values for specific properties of the Browser Object.
We are able to output these values to the user to notify them, but we are also able to use these values in the code to display our page differently to different users. For example, not using ActiveX Controls if the user’s browser does not support ActiveX.
The code-behind should look something like this:

Download Source Files