I have three update panel. now i just implement one function that Disable button in update panel when it's clicked and enable it after request end. for few knowledge of javascript i created three function for that here are :
<script>
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler1);
function BeginRequestHandler1(sender, args) {
document.getElementById('<%=btn_Login.ClientID%>').innerText = "Processing..";
$('#btn_Login').attr('class', 'btn-inactive');
args.get_postBackElement().disabled = true;
}
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler2);
function BeginRequestHandler2(sender, args) {
document.getElementById('<%=btn_Subscribe.ClientID%>').innerText = "Processing..";
$('#btn_Subscribe').attr('class', 'btn-inactive');
args.get_postBackElement().disabled = true;
}
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(BeginRequestHandler3);
function BeginRequestHandler3(sender, args) {
document.getElementById('<%=btnsubmit.ClientID%>').innerText = "Processing..";
$('#btn_Subscribe').attr('class', 'btn-inactive');
args.get_postBackElement().disabled = true;
}
</script>
Here three are diff script for handling three diff btoon request made. here i want to make common script that identify which button made post back request with id then only it's behaviour get changed.
please help me...