How to remove the link if value is 0 using asp.net mvc
Posted
by kumar
on Stack Overflow
See other posts from Stack Overflow
or by kumar
Published on 2010-06-09T20:34:26Z
Indexed on
2010/06/09
20:42 UTC
Read the original article
Hit count: 161
ASP.NET
|asp.net-mvc
i have this code..
<table class="dashboard-table">
<thead>
<tr>
<th> </th>
<th>Worked</th>
</tr>
</thead>
<%
foreach (var e in Model.ExceptionsByType)
{
%>
<tr>
<td>
<%=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) })%>
</td>
<td class="number">
<%=e.WorkedExceptions %>
</td>
</tr>
<%
} %>
</table>
e.WorkedExceptions
is the count of exceptions..
I need to to the condition here if the e.workedexceptions == 0
I need to remove the link?
please can any body hlep me out?
thanks
© Stack Overflow or respective owner