How do I submit a form to an MVC controller action using a blazor EditForm component?

Viewed 703

Using blazor I would like to submit the form to an MVC controller action once validation has taken place. Can I make the form behave like a regular form? The following doesn't work because the action attribute is ignored.

<EditForm EditContext="@_modelContext" OnSubmit="HandleValidSubmit" action="/" method="post">

The form values tell the controller what file send to the response stream.

I don't see away to bypass the behaviour of EditForm. Is this possible?

0 Answers
Related