【发布时间】:2018-08-09 10:05:50
【问题描述】:
我正在尝试使用 web.api 加载 DataTable
我的 HTML 代码如下
<button id="refresh">Refresh</button>
<button id="AddRow">Add New Row</button>
<table id="stdTable" class="table table-bordered table-striped" width="100%">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Age</th>
<th>Date of birth</th>
<th>Edit/View</th>
</tr>
</thead>
</table>
我的模态如下
public class StudentModel {
[Key]
public int Id { get; set; }
public String Name { get; set; }
public int Age { get; set; }
public DateTime DateofBirth { get; set; }
}
【问题讨论】:
-
您对代码的具体问题是什么?就目前而言,这对我来说似乎太宽泛了。
标签: asp.net-mvc datatables asp.net-web-api2