I have a button on an ASP.NET wep application form and when clicked goes off and posts information a third party web service.
I have an UpdateProgress associated with the button.
how do disable/hide the button while the progress is visible (i.e. the server has not completed the operation)
I am looking at doing this to stop users clicking again when the information is being sent (as this results in duplicate information being sent)
You’ll have to hook a javascript method to the page request manager (Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest). Here is the code I would use to hide the buttons, I would prefer the disable them (see how that’s done in the link at the bottom).
ASP.NET
Javascript
See more about this at Why my ASP.NET AJAX forms are never submitted twice by Dave Ward.