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. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
public: [BindableAttribute(true)] property String^ AlternateFormat { String^ get(); void set(String^ value); }
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.
Note |
|---|
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 Forms Page Syntax Overview. |
Available since 1.1
PhoneCall Class
System.Web.UI.MobileControls Namespace
Introduction to the PhoneCall Control
