“if” considered harmful in ASP.NET MVC View (.aspx) files?

后端 未结 7 1208
孤城傲影
孤城傲影 2021-02-10 05:47

I remember seeing a blog (or something) that said you should not use <% if ... %> in .aspx files in ASP.NET MVC, but I can\'t remember what it said the alternative is. Can a

相关标签:
7条回答
  • 2021-02-10 06:20

    I feel that is just fine. It allows for the view to have control of its presentation.

    0 讨论(0)
提交回复
热议问题