In my View (.aspx) code, what parameters can I provide to Html.BeginForm() in order to get it to submit back to the same controller and action that produced the view?
In my View (.aspx) code, what parameters can I provide to Html.BeginForm() in order
Share
It all depends on your route table. Assuming that you’re using standard routes, I think you can provide no arguments (or nulls) and that you’ll end up at the same controller-action that generated the view.
Otherwise, you can pull the current controller and action from the route data.