This documentation is archived and is not being maintained.

GatewayVersion Property

.NET Framework 1.1

Returns the version of the wireless gateway used to access the server, if it is known. The default value is None.

public virtual string GatewayVersion {


The following example demonstrates how to use the GatewayVersion property to set the label for UP browsers.

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.GatewayVersion.IndexOf("UP.Link", 0) > - 1 Then
   lblNotice.Text = "You are using UP.Link Gateway"

End If 
End Sub

public void Page_Load(Object sender, EventArgs e)
   MobileCapabilities currentCapabilities
   if ((currentCapabilities.GatewayVersion).IndexOf("UP.Link",0) > -1)
      lblNotice.Text = "You are using UP.Link Gateway";

See Also

Applies to: MobileCapabilities Class