How do I get over my fears of <% %> in my ASP.Net MVC markup?

后端 未结 12 1918
轻奢々
轻奢々 2021-02-04 07:40

So I totally buy into the basic tenents of ASP.NET, testability, SoC, HTML control...it\'s awesome. However being new to it I have a huge hang up with the markup. I know it co

12条回答
  •  广开言路
    2021-02-04 08:19

    1) Helpers reduce HTML noise
    2) Partial Views to break up larger pages/reuse view code
    3) Try a different rendering engine, such as Sparkline
    4) REFACTOR if your view includes too many if statements.

提交回复
热议问题