修改视图

@model MODEL.biao

@{
Layout = null;
}




Create




@using (Html.BeginForm())
{
@Html.AntiForgeryToken()


修改




@Html.ValidationSummary(true, "", new { @class = "text-danger" })


姓名

@Html.EditorFor(model => model.bname, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.bname, "", new { @class = "text-danger" })


年龄

@Html.EditorFor(model => model.age, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.bname, "", new { @class = "text-danger" })


父母姓名

@Html.DropDownList("lid", ViewBag.s as List, "--请选择--")







}

转载于:https://www.cnblogs.com/JXSBoKeYuan/p/9388502.html

你可能感兴趣的:(修改视图)