I have a button inside an update panel.
I want it so when user clicks the button, a Please Wait... text shows as button text, and the button is disabled until post back completes. I’ve written this code:
$('#Button2').on("click", function (e) {
$("#Button2").val("Please Wait");
$('#Button2').attr('disabled', 'disabled');
});
The problem is when the button is being disabled, its event is not raised on server side. How can I solve this problem?
you should call server event after disabling button.for this you should using
ClientScript.GetPostBackEventReference(bt1, null)please see this link :Disable button in update panel on async postback