Menu.RenderBeginTag Method (HtmlTextWriter)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds tag attributes and writes the markup for the opening tag of the control to the output stream emitted to the browser or device.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override void RenderBeginTag(
	HtmlTextWriter writer
)

Parameters

writer
Type: System.Web.UI.HtmlTextWriter

The HtmlTextWriter containing methods to build and render the device-specific output.

The RenderBeginTag method adds tag attributes and writes the markup for the opening tag of the control to the output stream emitted to the response stream for the client browser.

Override RenderBeginTag when you want to implement custom behavior, for example to write multiple tags to the response stream before any control content, such as <table><tr><td>. This method overrides the RenderBeginTag method to add the SkipLinkText property.

System_CAPS_noteNote

This method is used primarily by control developers to extend the Menu control.

.NET Framework
Available since 2.0
Return to top
Show: