I have been searching for hours but yet cannot find a solution. I can't imagine that I am the first to come across this.
I have an Ajax form that calls a method in my controller, that returns a PartialView:
public PartialViewResult InventoryActivityAjax(int divisionId)
{
// ajax call to get products
return PartialView("_Index", builder.BuildIndexAjaxView(divisionId));
}
In this view is a link to another page. A lot of users click these links, and then press the Back button, and the page that gets re-loaded is the original page without the detail from the Ajax call.
Does anyone know how I can get the last page loaded? I would rather not recall the Ajax call either as it takes a second or so to load.
TIA, Mark