I am working on an Asp.Net MVC core web application, and i have added the following form inside my razor view, to build an Ajax form:-
<form method="get" data-ajax="true" data-ajax-url="/Submission/Create" data-ajax-method="get" data-ajax-update="#panel" data-ajax-failure="failed">
<div class="form-group">
<input type="submit" value="Submit" class="btn btn-primary" />
</div>
</form>
and i added the following inside the script:-
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");
<script src="~/js/jquery.unobtrusive-ajax.js"></script>
}
}
but when i click on the submit button i got this error on the browser console:-
HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
(XHR)GET - https://localhost:44363/Submission/Create?X-Requested-With=XMLHttpRequest&_=1590002030070
any advice?