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.
See Also: HtmlContainerControl Members
The most common controls with a closing tag are the <form>, <table>, <tr>, <td>, <a>, and <span> elements.
The HtmlContainerControl.InnerText and HtmlContainerControl.InnerHtml properties allow you to manipulate the content between the opening and closing tags of System.Web.UI.HtmlControls.HtmlContainerControl-derived controls.
A new instance of this class is not created directly.
If you use the HtmlContainerControl.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 HtmlContainerControl.InnerHtml property, be sure to validate the value to reduce security vulnerabilities. Otherwise, consider using the HtmlContainerControl.InnerText property instead.