@model LMSWebApplication.Models.DB.tblstudent @{ ViewBag.Title = "Edit"; Layout = "~/Views/Shared/_Layout.cshtml"; }
Edit Student details

@using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true, "", new { @class = "text-danger" }) @Html.HiddenFor(model => model.StudentID) @*@Html.HiddenFor(model => model.StudentNo)*@ @*@Html.HiddenFor(model => model.RollNo)*@ @Html.HiddenFor(model => model.InstituteID) @Html.HiddenFor(model => model.EntryDate) @Html.HiddenFor(model => model.CreatedBy)
@Html.LabelFor(model => model.StudentName, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.StudentName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.StudentName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.FatherName, htmlAttributes: new { @class = "control-label" }) @Html.EditorFor(model => model.FatherName, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.FatherName, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Class_Id, "Class", htmlAttributes: new { @class = "control-label" }) @Html.DropDownListFor(model => model.Class_Id, ViewBag.Class as SelectList, "", new { @class = "form-control", @required = "" }) @Html.ValidationMessageFor(model => model.Class_Id, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Grade_Id, "Grade Level", htmlAttributes: new { @class = "control-label" }) @Html.DropDownListFor(model => model.Grade_Id, ViewBag.Grade as SelectList, "", new { @class = "form-control", @required = "" }) @Html.ValidationMessageFor(model => model.Grade_Id, "", new { @class = "text-danger" })
@*
@Html.LabelFor(model => model.RollNo, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.RollNo, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.RollNo, "", new { @class = "text-danger" })
*@ @*
@Html.LabelFor(model => model.StudentNo, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.StudentNo, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.StudentNo, "", new { @class = "text-danger" })
*@
}
@*
@Html.ActionLink("Back to List", "Index")
*@