简体   繁体   English

asp.net中的HTML服务器控件

[英]HTML Server Control in asp.net

What is the difference between HTML Container Control and HTML Generic Control in asp.net? HTML.net中的HTML容器控件和HTML通用控件有什么区别? How can their properties be changed? 他们的财产如何改变?

Please go through this msdn link , you get the idea 请通过这个msdn链接,你明白了

HTMl Generic Controls HTMl通用控件

HtmlContainerControl Class HtmlContainerControl

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. 用作HTML服务器控件的抽象基类,映射到需要具有开始和结束标记的HTML元素。

The most common controls with a closing tag are the <form> , <table> , <tr> , <td> , <a> , and <span> elements. 带有结束标记的最常见控件是<form><table><tr><td><a><span>元素。

The InnerText and InnerHtml properties allow you to manipulate the content between the opening and closing tags of HtmlContainerControl-derived controls. InnerTextInnerHtml属性允许您操作HtmlContainerControl派生控件的开始和结束标记之间的内容。

HtmlGenericControl Class HtmlGenericControl

Defines the methods, properties, and events for all HTML server control elements not represented by a specific .NET Framework class. 定义未由特定.NET Framework类表示的所有HTML服务器控件元素的方法,属性和事件。

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> . 使用此类表示不直接由.NET Framework类表示的HTML服务器控件元素,例如<span><div><body><font>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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