HtmlControl::TagName Property

 

Gets the element name of a tag that contains a runat=server attribute and value pair.

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

public:
property String^ TagName {
	virtual String^ get();
}

Property Value

Type: System::String^

The element name of the specified tag.

Use this property to programmatically determine the element name of the HTML server control. For example, the TagName property of the server-side <div id="myDiv" runat=server> element contains the value "div".

The following code example demonstrates how to use the TagName property to programmatically determine the element name of a tag.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: