Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PhoneCall Class

Provides control capability to render a command that the user can select to dial the specified phone number.

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

public class PhoneCall : TextControl, IPostBackEventHandler
public class PhoneCall extends TextControl implements IPostBackEventHandler
public class PhoneCall extends TextControl implements IPostBackEventHandler

For devices with telephony capability, such as a cell phone, the PhoneCall control renders a command that the user can select to dial the specified phone number.

On devices without telephony capability, the PhoneCall control renders alternate text, possibly including the phone number or a link; it is not treated as a command that has dialing capability.

The following code example demonstrates how to add several phone numbers to a Panel on your page. One PhoneCall control has an AlternateUrl and the phone number appears as a link on devices that cannot make a phone call.

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, see ASP.NET Web Page Code Model.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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

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

.NET Framework

Supported in: 2.0, 1.1
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.