AlternateUrl Property

Sets or returns the URL where the device will go to on noncalling devices.

public string AlternateUrl {
   get,
   set
}

Remarks

What the user sees is controlled by the Text, PhoneNumber, and AlternateFormat properties.

Note   This property is only used on devices that are unable to originate telephone calls as an alternative location for navigation purposes.

Example

The following example demonstrates how to use the AlternateUrl property to provide a navigable URL to browsers unable to call the phone number provided by the PhoneNumber property.

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

     PhoneCall1.Text = "Humongous Insurance"
     PhoneCall1.PhoneNumber = "555-0123"
     PhoneCall1.AlternateFormat = "Call {0} At {1}"
     'Browsers that do not have calling capability will navigate to 
     'URL specified in alternate URL.
     PhoneCall1.AlternateUrl = "http://www.humongousinsurance.com"

    End Sub
[C#]
private void Page_Load(object sender, System.EventArgs e)
{
   PhoneCall1.Text="Humongous Insurance";
   PhoneCall1.PhoneNumber="555-0123";
   PhoneCall1.AlternateFormat="Call {0} At {1}";
   // Browsers that do not have calling capability will navigate to 
   // URL specified in alternate URL.
   PhoneCall1.AlternateUrl="http://www.humongousinsurance.com" ;
}
</script>

<Mobile:Form runat=server id=frmChoice >
   <mobile:PhoneCall runat="server" ID ="PhoneCall1" />
</Mobile:Form>

See Also

Applies to: PhoneCall Class