时间:2021-07-01 10:21:17 帮助过:2人阅读
@model votesys.list @{ ViewBag.Title = "vote"; } <h2>vote</h2> @using (Html.BeginForm()) { @Html.AntiForgeryToken() @Html.ValidationSummary(true) <fieldset> <legend>list</legend> @Html.HiddenFor(model => model.id) <div class="editor-label"> @Html.LabelFor(model => model.question) </div> <div class="editor-field"> @Html.EditorFor(model => model.question) @Html.ValidationMessageFor(model => model.question) </div> <div class="editor-label"> @Html.LabelFor(model => model.remark) </div> <div class="editor-field"> @Html.EditorFor(model => model.remark) @Html.ValidationMessageFor(model => model.remark) </div> <div> <input type="radio" id="GenderM" name="result" value="公司制度很完善" />选项一 <input type="radio" id="GenderF" name="result" value="人员分配合理" checked />选项二 </div> <p> <input type="submit" value="Save" /> </p> </fieldset> } <div> @Html.ActionLink("Back to List", "Index") </div> @section Scripts { @Scripts.Render("~/bundles/jqueryval") }
MVC同一页面循环显示数据库记录(答题/投票系统)
标签: