This documentation is archived and is not being maintained.

Browser Property

.NET Framework 1.1

Returns the type of browser. The default value is Unknown.

public string Browser {


The Browser property is inherited from the System.Web.HttpBrowserCapabilities class.

Example values include: Pocket IE, Microsoft Explorer, Nokia,, Ericsson, and i-mode.


The following example demonstrates how to use the Browser property to display a warning message to the user.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

   Dim currentCapabilities As MobileCapabilities =  CType(Request.Browser,MobileCapabilities)
   If currentCapabilities.Browser <> "IE" Then
      Label1.Text = "Best viewed with Internet Explorer"
   End If
End Sub

public void Page_Load(Object sender, EventArgs e)
   MobileCapabilities currentCapabilities
      = (MobileCapabilities)Request.Browser;
   if (currentCapabilities.Browser !="IE")
      lblNotice.Text = "Best viewed with Internet Explorer";

See Also

MobileCapabilities Class