System.Web.UI.HtmlControls和 System.Web.UI.WebControls
在功能上区别在那里?

解决方案 »

  1.   

    System.Web.UI.HtmlControlsThe System.Web.UI.HtmlControls namespace is a collection of classes that allow you to create HTML server controls on a Web Forms page. HTML server controls run on the server and map directly to standard HTML tags supported by most browsers. This allows you to programmatically control the HTML elements on a Web Forms page.Namespace hierarchy
    System.Web.UI.WebControlsThe System.Web.UI.WebControls namespace is a collection of classes that allow you to create Web server controls on a Web page. Web server controls run on the server and include form controls such as buttons and text boxes. They also include special purpose controls such as a calendar. Because Web server controls run on the server, you can programmatically control these elements. Web server controls are more abstract than HTML server controls. Their object model does not necessarily reflect HTML syntax.Namespace hierarchy
      

  2.   

    html控件和asp.net控件。。html控件只要加上runat="server"和服务端就没什么差别了。服务端运行后,asp.net控件也会生成HTML代码,只是相对在ASP。NET使用。NET控件要方便多了。譬如使用事件等。。
      

  3.   

    纯粹的客户端操作就用HTML控件。
    根服务器段有交互的就用ASP.NET控件。
    当然,ASP.Net控件生成页面时也会被转化成对应的HTML标记。