“if”认为有害的ASP.NET MVC视图(.aspx)文件? [英] "if" considered harmful in ASP.NET MVC View (.aspx) files?

查看:100
本文介绍了“if”认为有害的ASP.NET MVC视图(.aspx)文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我记得看到一个博客(或某事),说你不应该在ASP.NET MVC中的.aspx文件中使用<%if ...%>,但我不记得它的替代方法是什么。

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?

推荐答案

我不知道这是否是你看到的,但< a href =http://codeclimber.net.nz/archive/2009/10/27/12-asp.net-mvc-best-practices.aspx =nofollow noreferrer>这里是博客提到它。见第11项。

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

这篇关于“if”认为有害的ASP.NET MVC视图(.aspx)文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆