Geeks With Blogs
AzamSharp Some day I will know everything. I hope that day never comes.

I got this awesome tip from one of the Starter Kits. The following code will disable the Button control and display the please wait message until the page is refreshed. It is simple, clean and beautiful! Check out the code below:

 this.MyButton.Attributes.Add("onclick", "this.value='Please wait...'
 ;
this.disabled = true;" + ClientScript
 .GetPostBackEventReference(
this.MyButton, ""));

powered by IMHO 1.3

Posted on Sunday, June 11, 2006 9:50 PM | Back to top


Comments on this post: Disabling the Button While the User Wait!

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Mohammad Azam | Powered by: GeeksWithBlogs.net