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

后端 未结 7 1192
孤城傲影
孤城傲影 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.

提交回复
热议问题