Posted By marco.shaw on 11/29/2007 10:55 AM
How about trying this:
http://aspzone.com/blogs/john/articles/207.aspx
Thanks, Marco!
I was searching for "BOZO USER TIRCK" ASP, and should have been searching "Stupid user trick" ASP ;)
No, I would have never found that page - thanks!
Initially, I thought it wouldn't work, as I create buttins programatically, so I cannot do anything tpo them in page_load, but this works at runtime
Button btnCreate = new Button();
btnCreate.Attributes.Add("onclick", "this.value='Please wait...';this.disabled= true;" + this.GetPostBackEventReference(btnCreate));
btnCreate.Text =
"Create Mailbox";
frmStateMailboxConfirm.Controls.Add(btnCreate);