I have a form on my index view that is posting to my submit action like this
@using(Html.BeginForm("Submit","Receiving", FormMethod.Post))
{
....
}
In that action I am returning a RedirectToAction after all the work that is needed is done
public ActionResult Submit(string selectedSerialNumber, string aisle, string rack, string rackbin)
{
//do the work
return RedirectToAction("Index");
}
after the user submits the form the Url shows "/Receiving/Submit" with the view of the index
instead of "/Receiving" or "/Receiving/Index"
If the user refreshes the page it tries to go back to the submit action again which is not what is expected and causing problems. they are expecting to refresh the index page how can I get that Url to go back to the index action after it is redirected. Thanks!