When to use HtmlControls vs WebControls

后端 未结 4 1947
[愿得一人]
[愿得一人] 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 03:51

    In my experience, there's very little difference. As Darren said, if you don't need server-side functionality, HTML controls are probably lower-impact.

    And don't forget, you can bolt server-side functionality onto almost any HTML control just by adding a runat="server" directive and an ID to it.

提交回复
热议问题