Proprietà AlternateUrl

Imposta o restituisce l'URL al quale viene rendirizzato il dispositivo nel caso di dispositivi che non possono effettuare chiamate.

public string AlternateUrl {
   get,
   set
}

Osservazioni

Le proprietà Text, PhoneNumber e AlternateFormat controllano ciò che viene visualizzato dall'utente.

Nota   La proprietà viene utilizzata soltanto in dispositivi che non possono eseguire chiamate telefoniche come percorso alternativo per effettuare gli spostamenti.

Esempio

Nell'esempio che segue viene illustrato come utilizzare la proprietà AlternateUrl per rendere disponibile un URL di spostamento ai browser che non sono in grado di chiamare il numero telefonico fornito dalla proprietà PhoneNumber.

    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>

Vedere anche

Si applica a: classe PhoneCall