XhtmlControlAdapter.RenderBeginLink Method (XhtmlMobileTextWriter, String, String, Style, String)

Note: This method is new in the .NET Framework version 2.0.

Renders the opening tag of a link using the given XhtmlMobileTextWriter and target, as well as the given styles or the given cascading style sheet class name.

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

protected:
virtual void RenderBeginLink (
	XhtmlMobileTextWriter^ writer, 
	String^ target, 
	String^ accessKey, 
	Style^ style, 
	String^ cssClass
)
protected void RenderBeginLink (
	XhtmlMobileTextWriter writer, 
	String target, 
	String accessKey, 
	Style style, 
	String cssClass
)
protected function RenderBeginLink (
	writer : XhtmlMobileTextWriter, 
	target : String, 
	accessKey : String, 
	style : Style, 
	cssClass : String
)

Parameters

writer

The XhtmlMobileTextWriter object used to render the server control content on the client's browser.

target

The target form or URL.

accessKey

A character to use as the shortcut key.

style

A Style object.

cssClass

A cascading style sheet class name.

This method automatically checks for the type of link and renders the appropriate markup. The specified target can refer to another URL or to a form on the same page. If style is not a null reference (Nothing in Visual Basic), the styles are applied to the link. If cssClass is not an empty string ("") and style is a null reference (Nothing in Visual Basic), the link is rendered with a class attribute.

This method is primarily used internally by the framework.

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

Community Additions

ADD
Show: