asp.net mvc - Issue in Mvc Razor -
i have made on 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="test@test.com">*@ @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="test@test.com"></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 saying loop missing closing tags.after checking several times couldn't able find out issue.thanks assistance.
updating 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, , fixes issue, checked @ runtime too.
Comments
Post a Comment