<table id="tblCustomItemSpecifics" cellspacing="0" cellpadding="0" class="tabs-details_table" border="0" style="border-collapse:collapse;">
@if (@Model.ItemSpecification != null)
{
foreach (var item in Model.ItemSpecification)
{
<tr><td>@item.Name</td><td>@item.Value</td></tr>
}
}
</table>
The Above code genertes like below for four items:
Item1 : test Item
Item2 : test Item
item3 : test item
item4 : test item
I want to make here two column: like:
Item1 : test Item Item2 : test Item
item3 : test item item4 : test item
I am facing problem declaring the tag conditionally. Hope you understand the question.