Answers for "redirecttoaction with parameters model"

0

redirecttoaction with parameters model

[HttpPost]
public ActionResult FillStudent(Student student1)
{
    TempData["student"]= new Student();
    return RedirectToAction("GetStudent","Student");
}

[HttpGet]
public ActionResult GetStudent(Student passedStd)
{
    Student std=(Student)TempData["student"];
    return View();
}
Posted by: Guest on November-30-2020

Code answers related to "redirecttoaction with parameters model"

Browse Popular Code Answers by Language