Answers for "redirecttoaction with parameters"

0

redirecttoaction with parameters

return RedirectToAction("Action", new { id = 99 });
Posted by: Guest on April-23-2020
0

redirecttoaction not sending id

return RedirectToAction("IngredientIndex", new { id = id });
Posted by: Guest on July-29-2020
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"

Browse Popular Code Answers by Language