This is for obvious reasons because you have to wait for the server procedure to finish before the btn.enabled=false; command gets sent to the browser. To get around this, you will need to use some javascript. You can do something like this:
string sJavaScript = "";
sJavaScript = "if (typeof(Page_ClientValidate) == 'function') { ";
sJavaScript += "if (Page_ClientValidate() == false) { return false; }} ";
sJavaScript += "this.value = 'Please wait...';";
sJavaScript += "this.disabled = true;";
sJavaScript += Page.GetPostBackEventReference(this.btn);
sJavaScript += ";";
btn.Attributes.Add("onClick", sJavaScript);
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429