0
我知道如何顯示ASP.NET一個真正的表如如何在ASP.NET中顯示「查看」表(SQL表)?
public ActionResult Index()
{
var s = db.StaffInfoDBSet.ToList();
return View(s);
}
,並在...的viewController
@model IEnumerable<TrainingHourSystem.Models.StaffInfo>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.StaffId)
</th>
<th>
@Html.DisplayNameFor(model => model.UnitId)
</th>
<th>
@Html.DisplayNameFor(model => model.GradeId)
</th>
,但我不知道如何表現出「查看」 ASP.NET中的表(SQL表)...
什麼是查看錶? – Shyju
選定的表格(作爲視圖),但不是真實的表格... –
您可以像選擇正常表格一樣選擇「查看錶格」。沒有什麼不同於「真正的表」 – Mark