HTML server controls (Cont..)
HtmlControl Class
- The HtmlControl base class is used for those HTML classes that are focused on HTML elements that can be contained within a single node. Such as <img>, <input>, and <link> elements.
(These elements are derived from HtmlControl Class)
HtmlContainerControl Class
- A class specifically designed to work with HTML elements that require a closing tag.
- HTML elements such as <a>, <form>, and <select>, require an opening and closing set of tags.
- These controls have some extra properties like InnerText and InnerHtml.
- InnerHtml: Enables you to specify content that can include HTML elements to be placed between the opening and closing tags of the specified control.
- InnerText: Enables you to specify raw text to be placed between the opening and closing tags of the specified control.
(These elements are derived from HtmlContainerControl Class)
HtmlGenericControl Class
- Using the HtmlGenericControl class, you can get server-side access to the <meta>, <p>, <span>, or other elements that would otherwise be unreachable.