Export (0) Print
Expand All
Expand Minimize

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 {
   get
}

Example

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

[C#]
public void Page_Load(Object sender, EventArgs e)
{
   MobileCapabilities currentCapabilities
      =(MobileCapabilities)Request.Browser;
   if ((currentCapabilities.GatewayVersion).IndexOf("UP.Link",0) > -1)
   {
      lblNotice.Text = "You are using UP.Link Gateway";
   }
""}

See Also

Applies to: MobileCapabilities Class

Show:
© 2014 Microsoft