"若"在ASP.NET MVC视图(的.aspx)文件视为有害吗?

"若"在ASP.NET MVC视图(的.aspx)文件视为有害吗?

问题描述:

我记得看到了说你不应该使用&lt一个博客(或其它);在ASP.NET MVC .aspx文件如果%...%>,但我不记得是什么它说是替代。任何人都可以记住见状并指向我呢?

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 anyone remember seeing this and point me to it?

我不知道如果这是你看到了什么,而是的这里是提到它一个博客。见第11项。

I'm not sure if this is what you saw, but here is a blog that mentions it. See item #11.