【发布时间】:2018-07-10 03:03:21
【问题描述】:
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
@*<th style="width:0px"></th>*@
<th>Name</th>
<th>Quantity</th>
<th>Unit Price</th>
<th>Total Price</th>
<th>Company Name</th>
<th style="display:none"></th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in list)
{
<tr>
<td name="pname">@item.Material_Name</td>
<td name="pprice">@item.Quantity</td>
<td name="pdetail">@item.Unit_Price</td>
<td name="pdetail">@item.Total_Price</td>
<td name="pdetail">@item.Name</td>
<td name="pid" style="display:none; white-space:nowrap">item.Id</td>
</tr>
}
</tbody>
</table>
<button class="btn btn-primary btn-lg btn-block" name="save" type="button">Print</button>
我想在操作时从数据表中获取产品列表。获得列表后,我想打印该列表。现在我只想从数据表中获取列表到操作。
【问题讨论】:
标签: javascript jquery asp.net asp.net-mvc asp.net-mvc-4