Name

HtmlGenericControl

Synopsis

This class is used for HTML elements that are not directly represented by other controls in this namespace (including <span>, <div>, and <body>). The primary use of the HtmlGenericControl is usually to set or modify attributes and styles, using the Attributes and Style properties inherited from HtmlControl. Note that the TagName property can be modified, allowing you to change the tag programmatically before the page is rendered as HTML and sent to the client browser.

Public Class HtmlGenericControl : Inherits HtmlContainerControl
' Public Constructors
   Public Sub New() 
   Public Sub New(ByVal tag As String) 
' Public Instance Properties
   Public Property TagName As String  
End Class

Hierarchy

System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)HtmlControl(System.Web.UI.IAttributeAccessor)HtmlContainerControl HtmlGenericControl

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.