When to use runat=“server” on normal HTML

后端 未结 5 683
北荒
北荒 2020-12-28 16:09

Is it ever appropriate to use runat=\"server\" on a standard HTML element instead of a true ASP.NET control? I have full control over setting the html/text of the normal el

5条回答
  •  一整个雨季
    2020-12-28 16:29

    I believe ASP.NET uses a different set of Web Server controls which usually has a lot more functionality, but it's really up to your preference. If your work is mostly server-side, I'd stick with ASP.NET controls.

提交回复
热议问题