Code behind in ASP.NET MVC

前端 未结 6 616
长情又很酷
长情又很酷 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:38

    There isn't a purpose. Just don't use it except for setting the model

    ViewPage
    

    See this blogpost for more info.

提交回复
热议问题