I have some code like:
<table>
@foreach (var invoiceLine in Model.Invoice.InvoiceLine)) {
<tr class="subheader">
<td>
<div class="approval">
<span>Office sign off:</span>
@Html.DisplayFor(modelItem => item.OfficeUser.Name)
<span id="officeapprovalspan">@(item.OfficeApproved.HasValue ? (item.OfficeApproved.Value ? "Accepted" : "On Hold") : "Please Approve")</span>
</div>
</td>
Well the span with id="officeapprovalspan" I’m wanting to set it’s id so that it’s officapprovalspan”x” where x is the current item invoiceLineId.
So when invoiceLineId=3 I would ideally want the span id to be id="officeapprovalspan3"
Anyone know how to achieve this?
or