Share via


RenderLink Method

Renders an entire link, with the specified text inside.

protected void RenderLink(
   WmlMobileTextWriter writer,
   string targetUrl,
   string softkeyLabel,
   bool mapToSoftkey,
   bool implicitSoftkeyLabel
   string text,
   bool breakAfter
)

Parameters

  • writer
    The specified text writer.
  • targetUrl
    The URL target.
  • softkeyLabel
    The softkey text to use for the link.
  • mapToSoftkey
    Set to true if mapping to a softkey on the device.
  • implicitSoftkeyLabel
    Set to true if the softkey label comes from the device adapter itself (the default label, or something else that is adapter specified, such as "Call" for a PhoneCall control), rather than a softkey label explicitly specified by the application author.
  • text
    The text defining the link.
  • breakAfter
    Set to true if the BreakAfter property is required to be set.

Remarks

If the mapToSoftKey parameter is set to true, the text of the softkeyLabel parameter is displayed.

See Also

RenderBeginLink | RenderEndLink

Applies to: WmlControlAdapter Class