Code behind in ASP.NET MVC

前端 未结 6 618
长情又很酷
长情又很酷 2020-12-06 06:59

What is the purpose of the code behind view file in ASP.NET MVC besides setting of the generic parameter of ViewPage ?

6条回答
  •  醉酒成梦
    2020-12-06 07:32

    At this Blogpost is a working example of removing the code behind. The only problem I'm stuck with is that it is not able to set namespaces on the class.

提交回复
热议问题