System.Web.UI.HtmlControls.HtmlGenericControl Class

Defines the methods, properties, and events for all HTML server control elements not represented by a specific .NET Framework class.

See Also: HtmlGenericControl Members

Syntax

[System.Web.UI.ConstructorNeedsTag(true)]
public class HtmlGenericControl : HtmlContainerControl

Remarks

Use this class to represent an HTML server control element not directly represented by a .NET Framework class, such as <span>, <div>, <body>, or <font>.

For a list of initial property values for an instance of System.Web.UI.HtmlControls.HtmlGenericControl, see the HtmlGenericControl.#ctor constructor.

Note:

This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Validation Server Controls and Introduction to Validating User Input in ASP.NET Web Pages.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0