System.Web.UI.HtmlTextWriter.OnAttributeRender Method

Determines whether the specified markup attribute and its value can be rendered to the current markup element.

Syntax

protected virtual bool OnAttributeRender (string name, string value, HtmlTextWriterAttribute key)

Parameters

name
A string containing the name of the attribute to render.
value
A string containing the value that is assigned to the attribute.
key
The System.Web.UI.HtmlTextWriterAttribute associated with the markup attribute.

Returns

Always true.

Remarks

The System.Web.UI.HtmlTextWriter class implementation of the HtmlTextWriter.OnAttributeRender(string, string, HtmlTextWriterAttribute) method always returns true. The HtmlTextWriter.OnAttributeRender(string, string, HtmlTextWriterAttribute) overrides can determine whether an attribute will be rendered to the page.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0