WmlControlAdapter.RenderBeginLink(WmlMobileTextWriter, String, String, Boolean, Boolean) 方法
定义
呈现链接的开始标记。Renders the opening tag of a link. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
void RenderBeginLink(System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter ^ writer, System::String ^ targetUrl, System::String ^ softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
protected void RenderBeginLink (System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
member this.RenderBeginLink : System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter * string * string * bool * bool -> unit
Protected Sub RenderBeginLink (writer As WmlMobileTextWriter, targetUrl As String, softkeyLabel As String, implicitSoftkeyLabel As Boolean, mapToSoftkey As Boolean)
参数
- writer
- WmlMobileTextWriter
文本编写器。The text writer.
- targetUrl
- String
指定的目标(窗体或 URL)。The specified target (form or URL).
- softkeyLabel
- String
用于软键的文本。Text used for the softkey.
- implicitSoftkeyLabel
- Boolean
如果软键标签来自适配器本身(默认标签,或适配器指定的其他标签,如“Call”表示 PhoneCall),而不是应用程序作者显式指定的软键标签,则设置为 true。Set to true if the softkey label comes from the adapter itself (the default label, or something else that is adapter specified, such as "Call" for a PhoneCall, rather than a softkey label explicitly specified by the application author.
- mapToSoftkey
- Boolean
确定软键标签是否用于链接。Determines whether a softkey label is used for the link. 如果为 true,则使用 softkeyLabel 文本。If true, the softkeyLabel text is used.
注解
此方法自动检查链接类型并呈现适当的标记语言。This method automatically checks for the type of link and renders the appropriate markup language. 指定的目标可以引用同一页上的另一个 URL 或窗体。The specified target can refer to another URL or to a form on the same page.