Example 1
案例1
The following example contains one form in an .aspx file. The first form contains a PhoneCall control that will display the text "Tove's number" and dial the number (555) 555-5555 when the user selects the text:
下面这个案例包含了 .aspx 文件中的两张表单。第一张表单中包含了一个PhoneCall控件,它显示了“Tove's number” 文本内容。当用户选择该文本时,它将拨打电话(555)555-5555:
<%@ Page Inherits="System.Web.UI.MobileControls.MobilePage"%>
<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<Mobile:Form runat="server"> <Mobile:PhoneCall runat="server"
PhoneNumber="(555) 555-5555" Text="Tove's number" AlternateFormat="{0}" /> </Mobile:Form>
|