开发者

How to remove the link if value is 0 using asp.net mvc

开发者 https://www.devze.com 2023-01-03 09:48 出处:网络
awesome worked fine for me.. due to security I am editing my code.. 开发者_如何学GothanksUpdate:

awesome worked fine for me.. due to security I am editing my code..

开发者_如何学Go

thanks


Update:

Replace

<%=Html.ActionLink(e.ExceptionTypeName, "VirtualScrollingDataRequested", Model.exceptionCategory.GetControllerName(), new { C_EXCPT_TYPE = e.ExceptionTypeID, GUI_SPEC_STAT_DSPL = 2, C_EXCPT_CATG = Model.exceptionCategory.Id, @ASSET_CLASS = string.Empty, @INST_MNEM = string.Empty, @_lock = "ALL" }, new { @title = e.BuildGridTitle(2, e.ExceptionTypeName) })%> 

with

<%=e.workedexceptions == 0 ? e.ExceptionTypeName : Html.ActionLink(e.ExceptionTypeName, "VirtualScrollingDataRequested", Model.exceptionCategory.GetControllerName(), new { C_EXCPT_TYPE = e.ExceptionTypeID, GUI_SPEC_STAT_DSPL = 2, C_EXCPT_CATG = Model.exceptionCategory.Id, @ASSET_CLASS = string.Empty, @INST_MNEM = string.Empty, @_lock = "ALL" }, new { @title = e.BuildGridTitle(2, e.ExceptionTypeName) })  %> 
0

精彩评论

暂无评论...
验证码 换一张
取 消