ASP.NET Tutorial/HTML Controls/HtmlContainerControl

Материал из .Net Framework эксперт
Версия от 12:00, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

The HtmlContainerControl Class

Any HTML control that requires a closing tag inherits from the HtmlContainer class. 
For example, elements such as <a>, <form>, and <div> always use a closing tag.
Elements such as <img> and <input> are used only as stand-alone tags.
HtmlAnchor, HtmlForm, and HtmlGenericControl classes inherit from HtmlContainerControl
HtmlInputImage and HtmlInputButton do not.
The HtmlContainer control adds two properties to those defined in HtmlControl.
HtmlContainerControl Properties
Property         Description
InnerHtml        The HTML content between the opening and closing tags of the control. 
InnerText        The text content between the opening and closing tags of the control.