I have an MVC view page (Views\DataForms\Index.cshtml) with an HTML form that just contains a couple of selects and a hidden element. I'm trying to POST the form to action 'Edit' in controller 'DataForms'. My form tag contains method="post" and action="DataForms\Edit".
The form includes a basic button with type="submit" and value="Submit", nothing unusual. But when I submit the form, the navigation fails with the error page showing the Requested URL as: http://localhost:49796/DataForms/Index/DataForms/Edit
So, the URL I'm actually requesting, is instead being appended to the URL of the current page where my form is. What might be causing this? I've searched the internet and I don't see anyone else raising this issue. Thanks.
The form includes a basic button with type="submit" and value="Submit", nothing unusual. But when I submit the form, the navigation fails with the error page showing the Requested URL as: http://localhost:49796/DataForms/Index/DataForms/Edit
So, the URL I'm actually requesting, is instead being appended to the URL of the current page where my form is. What might be causing this? I've searched the internet and I don't see anyone else raising this issue. Thanks.