What is the status of runat=“server” tags in ASP.NET MVC?

前端 未结 4 1812
忘了有多久
忘了有多久 2020-12-16 12:27

Some texts on ASP.NET MVC state that \"there are no runat server tags\", even this MSDN article says this, when, right above that statement there is a code example with a ru

4条回答
  •  既然无缘
    2020-12-16 13:20

    MVC is just a layer on top of webforms. My custom webforms controls also require the head tag to be accessible serverside for script registration. These custom controls are rendered clientside and don't use viewstate or serverside events. Because of this they can also be used in MVC with the ASPX view engine.

提交回复
热议问题