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

This attribute is used in the class declaration for a control. You add it, with the parameter set to True, to indicate that a control's constructor requires an HTML tag. This tag is used for the System.Web.UI.HtmlControls.HtmlTableCell and System.Web.UI.HtmlControls.HtmlGenericControl classes, which can represent different HTML elements. For example, a System.Web.UI.HtmlControls.HtmlTableCell could represent a <td> or <th> tag, depending on what tag is provided in the constructor.

public sealed class ConstructorNeedsTagAttribute : Attribute {
// Public Constructors
   public ConstructorNeedsTagAttribute( );
   public ConstructorNeedsTagAttribute(bool needsTag);
// Public Instance Properties
   public bool NeedsTag{get; }


System.Object System.Attribute ConstructorNeedsTagAttribute

Valid On


    Part I: Introduction to ASP.NET
    Part III: Namespace Reference
    Chapter 40. The System.Web.UI.MobileControls Namespace
    Chapter 42. The System.Web.UI.WebControls Namespace