Hello,
You can use Partial view concept for submit your form data and reload the same partial view on success. Refer below code:
Main Form:
$(document).ready(function () {
fneRegConfiguration();
});
function fneRegConfiguration() {
$.ajax({
type: "POST",
url: "../Home/_eRegConfiguration",
success: function (response) {
$("#dv_eRegConfiguration").html(response);
}
});
}
on Partial View:
function PostGlobalConfiguration() {
var globalData = new FormData($('#frmGlobalConfiguration')[0]);
$.ajax({
type: "POST",
url: "../Home/SaveGlobalConfiguration",
processData: false,
contentType: false,
data: globalData,
success: function (response) {
fneRegConfiguration();
}
}
Using this concept you can Add, Update and Delete in a single view or without redirecting to another page and without refresh the main page in .net mvc
If you have any more query, ask me freely.