This documentation is archived and is not being maintained.

PhoneCall.AlternateFormat Property

Gets or sets a formatting string for the text value that is displayed on devices that are not able to originate telephone calls. The default value is {0} {1}, meaning that the default text will be the Text property with the PhoneNumber property concatenated to it, with a space between them.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

[BindableAttribute(true)]
public string AlternateFormat { get; set; }
<asp:PhoneCall AlternateFormat="String" />

Property Value

Type: System.String
A formatting string for the text value that is displayed on devices that are not able to originate telephone calls.

An example of the default string is, Call {0} at {1} right now!! where the system replaces {0} with the Text property of the PhoneCall object (the innerText of the element on the page), and {1} with the value of the PhoneNumber property.

The following code example demonstrates how to add several phone numbers to a Panel on your page, and shows two forms of AlternateFormat.

NoteNote:

The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see ASP.NET Web Page Syntax Overview.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1
Show: