Html32TextWriter.GetTagName Method (HtmlTextWriterTag)

 

Returns the HTML element that is associated with the specified HtmlTextWriterTag enumeration value.

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

protected override string GetTagName(
	HtmlTextWriterTag tagKey
)

Parameters

tagKey
Type: System.Web.UI.HtmlTextWriterTag

The HtmlTextWriterTag enumeration value to obtain the HTML element for.

Return Value

Type: System.String

The HTML element.

If the HtmlTextWriterTag.Div field is passed in tagKey and the ShouldPerformDivTableSubstitution property is true, the GetTagName method returns the table element.

.NET Framework
Available since 1.1
Return to top
Show: