Introduction to the PhoneCall Control

If a mobile device can originate phone calls, the PhoneCall control enables your application to place calls for the user. A PhoneCall control must be placed within a Form or Panel control, or inside a control's template on a mobile ASP.NET Web page. You can also drag it onto a mobile user control page.

ASP.NET Mobile Designer PhoneCall

On mobile devices that can place phone calls, the PhoneCall control displays text that appears as a command the user can select. Set the contents of the text with the Text property. Use the PhoneNumber property to enter the number for the device to call.

If the user's mobile device does not support phone calls, the PhoneCall control displays text according to the format string specified in the AlternateFormat property. By default, the AlternateFormat property contains {0} {1} as its formatting string. The PhoneCall control replaces the {0} with the contents of the Text property. It replaces the {1} with the contents of the PhoneNumber property. The output text can be hyperlinked if a URL is specified in the AlternateUrl property.

Customize the appearance of the PhoneCall control with the Alignment, ForeColor, Font, StyleReference, and Wrapping properties.

Applying device filters to a PhoneCall control enables you to specify property override values. Overriding property values customizes the appearance and behavior of the control for specific mobile devices.

Using data binding, the PhoneCall control can also obtain its property values dynamically from a data source.