WmlControlAdapter.RenderBeginLink 方法

定义

呈现链接的开始标记。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 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

文本编写器。

targetUrl
String

指定的目标(窗体或 URL)。

softkeyLabel
String

用于软键的文本。

implicitSoftkeyLabel
Boolean

如果 软键标签来自适配器本身(默认标签或指定适配器的其他内容,例如,为 a 调用),而不是由应用程序作者显式指定的软键标签,则设置为 />。

mapToSoftkey
Boolean

确定软键标签是否用于链接。 如果 true为文本, softkeyLabel 则使用文本。

注解

此方法会自动检查链接的类型并呈现相应的标记语言。 指定的目标可以引用另一个 URL 或同一页上的窗体。

适用于

另请参阅