When to use runat=“server” on normal HTML

后端 未结 5 692
北荒
北荒 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:43

    I prefer to use html controls when there is more work on client side, and use asp.net controls when there is more work on server side ( code behind ).

提交回复
热议问题