I have a problem in ASP.NET Core MVC: I have two methods that return an ActionResult
.
When the page is displayed, it renders index and when ResetPassword
is called all data is hidden/lost.
I want to postback when ResetPassword
is called to submit form and render the data of Index
without selecting data again
public ActionResult Index()
{
var emps = Db.EmployeesData.ToList();
return View(emps);
}
public ActionResult ResetPassword(EmployeePage employeePage)
{
return View("index", employeePage);
}
New contributor
Ahmed Salama is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
4