Reputation: 377
I have made on for loop as:
@foreach (var ObjCompanyContact in (List<BalCentral.DataModel.VisaCaseDestinationCountryEmploymentContact>)ViewData["VisaCaseDestinationCountryEmployment"])
{
<table class="email_phone" style="width:100%">
<thead>
<tr>
<th></th>
<th><label class="control-label-superscript">Primary?</label></th>
<th></th>
</tr>
</thead>
<tr>
<td>@*<input type="text" id="Text22" class="span4" placeholder="Email Address" value="[email protected]">*@
@Html.TextBox("Email",ObjCompanyContact.Email,new {@class="span4",@placeholder="Email Address"})
</td>
<td style="text-align:center">
<input type="checkbox" name="Email"/></td>
<td><a href="#" class="btn"><i class="icon-remove"></i></a></td>
</tr>
<tr>
<td><input type="text" id="Text21" class="span4" placeholder="Email Address" value="[email protected]"></td>
<td style="text-align:center"><input type="checkbox" /></td>
<td><a href="#" class="btn"><i class="icon-remove"></i></a></td>
</tr>
<tr style="background-color: #F0F0F0 ">
<td colspan="3" style="padding: 5px 0px 0px 10px; "><label class="help-block" style="margin-bottom: 0px"">Add Email Address:</label></td>
</tr>
<tr style="background-color: #F0F0F0 ">
<td><input type="text" id="Text23" class="span4" placeholder="Add Email Address"></td>
<td style="text-align:center"><input type="checkbox" /></td>
<td><a href="#" class="btn btn-info"><i class="icon-plus"></i></a></td>
</tr>
</table>
}
The issue id its saying for loop is missing its closing tags.After checking several times i couldn't able to find out the issue.Thanks for any assistance.
Upvotes: 0
Views: 246
Reputation: 7854
Updating the following line from
<td colspan="3" style="padding: 5px 0px 0px 10px; "><label class="help-block" style="margin-bottom: 0px"">Add Email Address:</label></td>
to
<td colspan="3" style="padding: 5px 0px 0px 10px;">
<label class="help-block" style="margin-bottom: 0px">
Add Email Address:</label>
</td>
Formats well, and fixes your issue, checked at runtime too.
Upvotes: 1