NinethSense oWnZ mE!: Praveen’s drawing book

Choose a Topic:

Mon
11
Feb '08

How to disable button after submit - ASP.NET

 
Button1.Attributes.Add(“onclick”, ClientScript.GetPostBackEventReference(Button1,“”) + “;
this.value=’Please wait…’;this.disabled = true;”);


If you check the source after rendering, it will look like this:
 
onclick=“__doPostBack(’Button1′,'’);this.value=’Please wait…’;this.disabled = true;”
The CodeProject Microsoft Developer Network Official ASP.NET Forums Microsoft .NET Framework Community Microsoft Most Valuable Professional Kidoos forums Microsoft Visual Studio Developer Home Professional Information Technology Solutions Microsoft Research Home Trivandrum Microsoft Users Group Community Website