<script type="text/javascript"> function changeSubjectPhaseForStudent(subjectID, studentID) { var theForm = document.getElementById("frmStudent"); theForm.submit(); } </script> @model StudentController.StudentMetrics @using (Html.BeginForm("Student", "Student", Model,FormMethod.Get, new { id = "frmStudent" })) { @Html.DropDownListFor(x => x.PhaseID, (List<SelectListItem>)ViewBag.Phases, new { onchange = string.Format("changeSubjectPhaseForStudent({0},{1})", Model.SubjectID, Model.StudentID), id = "cmbPhase" }) }
@Html.HiddenFor(m => m.SubjectID) @Html.HiddenFor(m => m.StudentID)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)