Sie sind auf Seite 1von 2

@model System.Data.

DataSet
@{
ViewBag.Title = "Rejected upload Vs ICCommission List";
Layout = null;
}
@Styles.Render("~/Content/styles")

<div style="padding:0 20px;">


<table style="width:100%;"><tr><td><h3>@ViewBag.Title</h3></td></tr></table>
<table class="table table-bordered table-hover" style="font-size:12px;">
<thead>
<tr>

@if (Model != null && Model.Tables.Count > 0)


{
foreach (System.Data.DataColumn c in
Model.Tables[0].Columns) //loop through the columns.
{
<th class="nowrap">@c.ColumnName.ToString()</th>
}
}

</tr>
</thead>
<tbody>

@if (Model != null && Model.Tables[0].Rows.Count > 0)


{
foreach (System.Data.DataRow dr in Model.Tables[0].Rows)
{
<tr>
@foreach (System.Data.DataColumn c in
Model.Tables[0].Columns)
{
<td> @dr[c.ColumnName.ToString()].ToString() </td>
}
</tr>
}
}
else
{
<tr><td colspan="36">No record found.</td></tr>
}
</tbody>
</table>
</div>
@model System.Data.DataSet
@{
ViewBag.Title = "RejectedUploadCommsisionList";
Layout = null;
}
@Styles.Render("~/Content/styles")

<div style="padding:0 20px;">


<table style="width:100%;"><tr><td><h3>@ViewBag.Title</h3></td></tr></table>
<table class="table table-bordered table-hover" style="font-size:12px;">
<thead>
<tr>

@if (Model != null && Model.Tables.Count > 0)


{
foreach (System.Data.DataColumn c in
Model.Tables[0].Columns) //loop through the columns.
{
<th class="nowrap">@c.ColumnName.ToString()</th>
}
}

</tr>
</thead>
<tbody>

@if (Model != null && Model.Tables[0].Rows.Count > 0)


{
foreach (System.Data.DataRow dr in Model.Tables[0].Rows)
{
<tr>
@foreach (System.Data.DataColumn c in
Model.Tables[0].Columns)
{
<td> @dr[c.ColumnName.ToString()].ToString() </td>
}
</tr>
}
}
else
{
<tr><td colspan="36">No record found.</td></tr>
}
</tbody>
</table>
</div>

Das könnte Ihnen auch gefallen