@{ ViewBag.Title = "kemuMessage"; } @model dccdc.Models.kemuquestionModel @section scripts{ }
@using (Ajax.BeginForm("kemuquestionMessage", new AjaxOptions { HttpMethod = "Post", OnSuccess = "success" })) { @Html.HiddenFor(m => m.id, new { id = "id" })
问题名称: @Html.TextAreaFor(m => m.title, new { cols = "39", rows = "2" }) @Html.ValidationMessageFor(m => m.title)
问题内容: @Html.TextAreaFor(m => m.content, new { cols = "39", rows = "2" }) @Html.ValidationMessageFor(m => m.content)
问题答案: @Html.TextBoxFor(m => m.answer, new { @class = "l-text" }) @Html.ValidationMessageFor(m => m.answer)
状态: @Html.DropDownListFor(m => m.zt, ViewData["ztD"] as SelectList, "----请选择----")@Html.ValidationMessageFor(m => m.zt)
}