Skip to content
Loading
how to load data as listing after saving it into the db mvc  
  • class="form-group">  
  • @Html.LabelFor(model => model.Institution_Attended, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Institution_Attended, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Institution_Attended, "", new { @class = "text-danger" })  
  •   
  •   
  • @*class="form-group">  
  • @Html.LabelFor(model => model.User_Id, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.User_Id, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.User_Id, "", new { @class = "text-danger" })  
  •   
  • *@  
  • class="form-group">  
  • @Html.LabelFor(model => model.BoardORUniversity, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.BoardORUniversity, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.BoardORUniversity, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.MarksObtained, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.MarksObtained, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.MarksObtained, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.TotalMarks, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.TotalMarks, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.TotalMarks, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.Year_Passed, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Year_Passed, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Year_Passed, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.Active, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • class="checkbox">  
  • @Html.EditorFor(model => model.Active)  
  • @Html.ValidationMessageFor(model => model.Active, "", new { @class = "text-danger" })  
  •   
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.Date_Started, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Date_Started, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Date_Started, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.Date_End, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Date_End, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Date_End, "", new { @class = "text-danger" })  
  •   
  •   
  • @*class="form-group">  
  • @Html.LabelFor(model => model.Date_Created, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Date_Created, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Date_Created, "", new { @class = "text-danger" })  
  •   
  •   
  • class="form-group">  
  • @Html.LabelFor(model => model.Date_Modified, htmlAttributes: new { @class = "control-label col-md-2" })  
  • class="col-md-10">  
  • @Html.EditorFor(model => model.Date_Modified, new { htmlAttributes = new { @class = "form-control" } })  
  • @Html.ValidationMessageFor(model => model.Date_Modified, "", new { @class = "text-danger" })  
  •   
  • *@  
  • class="form-group">  
  • class="col-md-offset-2 col-md-10">  
  • "submit" id="sbmtInput" value="Create" class="btn btn-default" />  
  • @*@{Html.RenderAction("Index", "Student_Experience");}*@  
  • @Html.ActionLink("Cancel", "Index", "Student_Experience", null, new { @class = "btn btn-dark active" })  
  •   
  •   
  •   
  • }  
  • @*
      
  • @Html.ActionLink("Back to List", "Index")  
  • *@  


  •   
  • @Scripts.Render("~/bundles/jquery")  
  • @Scripts.Render("~/bundles/bootstrap")  
  •   
  •   
  • 1 Reply

    Know the answer? Post it — somebody with the same question will find it here.