NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HtmlContainerControl Class

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

Remarks

This class allows developers to manipulate content found between opening and closing tags of HTML server controls that inherit from this class.

Requirements

Namespace: System.Web.UI.HtmlControls

Assembly: System.Web.dll

Example [C#]

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>

See Also

HtmlContainerControl Members | System.Web.UI.HtmlControls Namespace