HtmlContainerControl Class
Serves as the abstract base class for HTML server controls that map to HTML elements that are required to have an opening and a closing tag.
Assembly: System.Web (in System.Web.dll)
[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] public ref class HtmlContainerControl abstract : public HtmlControl
<asp:HtmlContainerControl />
The most common controls with a closing tag are the <form>, <table>, <tr>, <td>, <a>, and <span> elements.
The InnerText and InnerHtml properties allow you to manipulate the content between the opening and closing tags of HtmlContainerControl-derived controls.
For a list of initial property values for an instance of HtmlContainerControl, see the HtmlContainerControl constructor.
A new instance of this class is not created directly.
Caution: |
|---|
If you use the InnerHtml property to specify the text between the opening and closing tags of an HTML server control, the text is not HTML encoded. This makes it possible to embed script within HTML tags in the text. When using the InnerHtml property, be sure to validate the value to reduce security vulnerabilities. Otherwise, consider using the InnerText property instead. |
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.Web.UI::Control
System.Web.UI.HtmlControls::HtmlControl
System.Web.UI.HtmlControls::HtmlContainerControl
System.Web.UI.HtmlControls::HtmlAnchor
System.Web.UI.HtmlControls::HtmlButton
System.Web.UI.HtmlControls::HtmlForm
System.Web.UI.HtmlControls::HtmlGenericControl
System.Web.UI.HtmlControls::HtmlSelect
System.Web.UI.HtmlControls::HtmlTable
System.Web.UI.HtmlControls::HtmlTableCell
System.Web.UI.HtmlControls::HtmlTableRow
System.Web.UI.HtmlControls::HtmlTextArea
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Caution: