User61956409 posted
Hi ayma,
To prevent dynamically generated controllers from reloading or disappearing after click button causing post back, you can attach click event to your button with
the .on() method and make ajax request to webmethod or service to process data etc instead of posting the form.
$("#btnok").on("click", function (e) {
//here make ajax request
//Prevent button from submitting a form
e.preventDefault();
})
With Regards,
Fei Han