Remark :
Partial View
Use Partial View
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
@model IEnumerable<WebApplication8.Models.Employee> @{ ViewData["Title"] = "ViewAll"; System.Text.StringBuilder allData = new System.Text.StringBuilder(); } <h1>ViewAll</h1> @foreach (var m in Model) { allData.Append(Html.RenderPartial("_PartialTable", m)); } @Html.Raw(allData); |