【发布时间】:2010-11-16 12:07:41
【问题描述】:
哪些区域会受到影响?
代码可读性?可维护性?表现?安全?任何其他?
我的观点一直在使用类似的东西
if(Model.Showthis) {<div id = "showthis">...</div>} }
并且做以下类似的事情是否有安全隐患? --
<%if (HttpContext.Current.User.Identity.IsAuthenticated && item.Poster.UserName == HttpContext.Current.User.Identity.Name)%>
<%{%>
...
<%}%>
是的,我也读过"if" considered harmful in ASP.NET MVC View (.aspx) files?,但它并没有具体说明哪些区域会受到它的影响。我的意思是我想确保没有安全和性能方面的影响,链接没有准确回答
【问题讨论】:
标签: asp.net-mvc