This documentation is archived and is not being maintained.

Html32TextWriter.GetTagName Method

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
protected String GetTagName (
	HtmlTextWriterTag tagKey
protected override function GetTagName (
	tagKey : HtmlTextWriterTag
) : String
Not applicable.



The HtmlTextWriterTag enumeration value to obtain the HTML element for.

Return Value

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0