redirecttoaction with parameters
return RedirectToAction("Action", new { id = 99 });
redirecttoaction with parameters
return RedirectToAction("Action", new { id = 99 });
redirecttoaction not sending id
return RedirectToAction("IngredientIndex", new { id = id });
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();
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us