简体   繁体   中英

HTML Server Control in asp.net

What is the difference between HTML Container Control and HTML Generic Control in asp.net? How can their properties be changed?

Please go through this msdn link , you get the idea

HTMl Generic Controls

HtmlContainerControl Class

Serves as the abstract base class for HTML server controls that map to HTML elements that are required to have an opening and a closing tag.

The most common controls with a closing tag are the <form> , <table> , <tr> , <td> , <a> , and <span> elements.

The InnerText and InnerHtml properties allow you to manipulate the content between the opening and closing tags of HtmlContainerControl-derived controls.

HtmlGenericControl Class

Defines the methods, properties, and events for all HTML server control elements not represented by a specific .NET Framework class.

Use this class to represent an HTML server control element not directly represented by a .NET Framework class, such as <span> , <div> , <body> , or <font> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM