JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HtmlContainerControl Class

As discussed in the In Depth section of this chapter, the HtmlContainerControl class defines the methods, properties, and events available to all HTML server controls that are containers. Here is the inheritance hierarchy of this class:


This class allows you to work with the contents between the opening and closing tags of HTML server controls that inherit from this class. You can find the notable public properties of HtmlContainerControl objects in Table 19.3. (This class has no non-inherited methods or events.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class—you can find them in Chapter 15, Tables 15.1 to 15.3. This class also inherits the HtmlControl class; you can find that class in Table 19.2.

Table 19.3: Noteworthy public properties of HtmlContainerControl objects.




Gets/sets the content between the opening and closing tags of the HTML control.


Gets/sets all text between the opening and closing tags of the specified HTML control. (Note that, unlike the InnerHtml property, InnerText supports automatic HTML encoding and decoding.)

Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor