Popular Articles
Last viewed:
- Tutorial for Configuring Silverlight 4, Entity Framework and WCF RIA Services in Separate Component Assemblies (DLL’s)
- SQL Server Log File (AKA LDF file) is huge - reduce size
- Crystal Reports and ASP.NET
- SQL Script to Create and Update a Database
- Data Access Layer using SqlDataReader and C#
- ASP.NET CSS Highlight TextBox on Focus
Recent comments
- Awsome!!
7 hours 16 min ago - C# insert image
22 hours 8 min ago - jkll
3 days 10 hours ago - Thank You
4 days 10 hours ago - Another approach
6 days 11 hours ago - Issue
1 week 35 min ago - thanks
1 week 11 hours ago - Calendar date time
1 week 17 hours ago - Nice Explanation
1 week 20 hours ago - ramya
1 week 3 days ago

Problems with this...
This does not work when there are validator controls on the page. To fix this, add the following lines to the start of the javascript function (before the line 'oButton.disabled = true;'):
if (typeof(Page_ClientValidate) == 'function')
if (Page_ClientValidate() == false)
return false;
Also, I have found intermittent problems with the button's server-side click event handler firing twice (it seems to happen on our production server where the postback round-trip takes longer than on my dev PC). To fix this, add a "return" to the end of the button's OnClientClick property:
btnSubmit.OnClientClick = "disableButtonOnClick(this, 'Please wait...', 'disabled_button'); ";
btnSubmit.OnClientClick += ClientScript.GetPostBackEventReference(optionsSubmit);
btnSubmit.OnclientClick += "; return;";
Hope this helps someone
Andy