asp.net.ph

HtmlControl.TagName Property

System.Web.UI.HtmlControls   HtmlControl Class


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

Syntax


Script HtmlControl.TagName

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value

The HTML element name of the specified tag.

Remarks

For a server-side <div id="myDiv" runat=server> element, the TagName property would return a value of div.

See Also

HtmlControl Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note