www.gibmonks.com

Main Page

  Previous Section Next Section

HtmlGenericControldisposable

System.Web.UI.HtmlControls (system.web.dll)class

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 : HtmlContainerControl {
// Public Constructors
   public HtmlGenericControl( );
   public HtmlGenericControl(string tag);
// Public Instance Properties
   public string TagName{set; get; }                // overrides HtmlControl
}

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

      Previous Section Next Section