@using MvcWcf.ServiceReference1
@model IEnumerable<WcfService.MyAddress>
<table>
<tr>
<td>@Html.DisplayNameFor(model => model.Address1)</td><td>@Html.DisplayNameFor(model => model.City)</td>
</tr>
@foreach (var item in Model)
{
<tr><td>@Html.DisplayFor(modelItem => item.Address1)
</td><td>@Html.DisplayFor(modelItem => item.City)</td>
</tr>
}
</table>
my requirement how to display items in th and records dynamically for example @Html.DisplayNameFor(model => model.Address1)@Html.DisplayNameFor(model => model.City) here i wrote address1 and City because i know the fields. if i don't …
@model IEnumerable<WcfService.MyAddress>
<table>
<tr>
<td>@Html.DisplayNameFor(model => model.Address1)</td><td>@Html.DisplayNameFor(model => model.City)</td>
</tr>
@foreach (var item in Model)
{
<tr><td>@Html.DisplayFor(modelItem => item.Address1)
</td><td>@Html.DisplayFor(modelItem => item.City)</td>
</tr>
}
</table>
my requirement how to display items in th and records dynamically for example @Html.DisplayNameFor(model => model.Address1)@Html.DisplayNameFor(model => model.City) here i wrote address1 and City because i know the fields. if i don't …