System.Web.UI.HtmlControls HtmlControl Class
Gets the element name of a tag that contains a runat=server
attribute/value pair.
Script |
HtmlControl.TagName |
This property can only be used programmatically; it cannot be set when declaring the control.
The HTML element name of the specified tag.
For a server-side <div id="myDiv" runat=server>
element, the TagName property would return a value of div.
HtmlControl Members