The HtmlContainerControl Class : HtmlContainerControl « HTML Controls « ASP.NET Tutorial

Home
ASP.NET Tutorial
1.ASP.Net Instroduction
2.Language Basics
3.ASP.net Controls
4.HTML Controls
5.Page Lifecycle
6.Response
7.Collections
8.Validation
9.Development
10.File Directory
11.Sessions
12.Cookie
13.Cache
14.Custom Controls
15.Profile
16.Configuration
17.LINQ
18.ADO.net Database
19.Data Binding
20.Ajax
21.Authentication Authorization
22.I18N
23.Mobile
24.WebPart
25.XML
ASP.NET Tutorial » HTML Controls » HtmlContainerControl 
4.8.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.
4.8.HtmlContainerControl
4.8.1.The HtmlContainerControl Class
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.