System.Web.UI.WebControls.Menu.AddAttributesToRender Method

Adds HTML attributes and styles that need to be rendered to the specified System.Web.UI.HtmlTextWriter object.

Syntax

protected override void AddAttributesToRender (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
The output stream that renders HTML contents to the client.

Remarks

The System.Web.UI.WebControls.Menu control overrides the WebControl.AddAttributesToRender(System.Web.UI.HtmlTextWriter) method to reset the WebControl.AccessKey property to string.Empty. This member is primarily used by control developers when deriving a custom control from the System.Web.UI.WebControls.Menu class.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0