When to use HtmlControls vs WebControls

后端 未结 4 1937
[愿得一人]
[愿得一人] 2021-01-01 03:18

I like HtmlControls because there is no HTML magic going on... the asp source looks similar to what the client sees.

I can\'t argue with the utility of GridView, Re

4条回答
  •  有刺的猬
    2021-01-01 04:13

    By adding runat="server" you can get access to any HTML controls in server side.. and I believe HTML controls are less weight compared to ASP.NET server controls..

提交回复
热议问题