ChtmlTextWriter.OnTagRender Method (String, HtmlTextWriterTag)

 

Determines whether the specified cHTML markup element is rendered to the requesting page.

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

Protected Overrides Function OnTagRender (
	name As String,
	key As HtmlTextWriterTag
) As Boolean

Parameters

name
Type: System.String

A string containing the name of the cHTML element to render.

key
Type: System.Web.UI.HtmlTextWriterTag

The HtmlTextWriterTag associated with name.

Return Value

Type: System.Boolean

true if the specified cHTML markup element can be rendered; otherwise, false.

If the cHTML element is a span element, the OnTagRender method returns false. For all other tags, it returns true.

.NET Framework
Available since 2.0
Return to top
Show: