On page Index i have some form. On submit I use this code in HomeController:
[HttpPost]
public ActionResult Index(EventDetails obj)
{
if (ModelState.IsValid)
{
return RedirectToAction("Index2","Home");
}
else
{
return View();
}
}
public ActionResult Index2()
{
return View();
}
So it will redirect me to another page named Index2. How can i get POST data, sent in "Index" page and use it in "Index2" page. And how to show POST data, sent by prev. page in view page?