I am creating a form in MVC with @Html.BeginForm(), but my form should send a message to my confirmation, which will display a confirmation.
The confirmation action is simple enough, but the user will be redirected there, and my mapped route looks like this:
routes.MapRoute(
name: "RegisterConfirmationRoute",
url: "register/confirmation",
defaults: new { controller = "Account", action = "ConfirmRegistration" }
);
Am I really wrong? I don't see how I can get @Html.BeginFormto use routeName to render the form action attribute?
Regards, Jacques
source
share