@using System.Data @using ZoomLa.Model.Design @using ZoomLa.BLL.Helper @model System.Data.DataTable @{ int index = 0; } @foreach (DataRow dr in Model.Rows) { index++; M_Design_Question questMod = new M_Design_Question().GetModelFromReader(dr); string info = ZoomLa.BLL.Helper.JsonHelper.GetJson(new string[] { "id", "qtype", "required", "index" }, new object[] { questMod.ID, questMod.QType, questMod.Required, index });
  • @(index+ "、"+questMod.QTitle) @if (questMod.Required) {* }
    @MvcHtmlString.Create(questMod.QContent)
    @Html.Partial("Quest_" + questMod.QType, questMod)
  • }