The HtmlContainerControl class defines the methods, properties and events available to all Html Server controls that must have a closing tag. The most common among these are the <form>, <table>, <tr>, <td>, <a>, and <span> elements.
Object
Control
HtmlControl
HtmlContainerControl
[Visual Basic] Public Class HtmlContainerControl Inherits HtmlControl [C#] public class HtmlContainerControl : HtmlControl [C++] public __gc class HtmlContainerControl : public HtmlControl [JScript] public class HtmlContainerControl extends HtmlControl
This class allows developers to manipulate content found between opening and closing tags of HTML server controls that inherit from this class.
Namespace: System.Web.UI.HtmlControls
Assembly: System.Web.dll
This example demonstrates how one might use the InnerHtml property of this class to dynamically generate a message on a Web page.
[C#]
<html> <script language="C#" runat=server> void Page_Load(Object Src, EventArgs E) { Message.InnerHtml = "Welcome! You accessed this page at: " + DateTime.Now; } </script> <body> <font id="MessageFont" size="14" runat=server> <span id="Message" runat=server></span> </font> </body> </html>
HtmlContainerControl Members | System.Web.UI.HtmlControls Namespace