Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop command button from being clicked twice
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01408368
Message ID:
01408505
Views:
48
This message has been marked as the solution to the initial question of the thread.
Here is the final (and simple) answer to this dilemma found on the following link:

http://encosia.com/2007/04/17/disable-a-button-control-during-postback/


>>>Can you disable the button after the click and enable it back in page Load?
>>
>>Naomi,
>>
>>This would not work (I tested to confirm) as the page Load runs first and then the click event fires thereby leaving the button disabled.
>>
>
>It seems like the same principle would work if you disabled the button at the beginning of the click method and enabled it at the end. No worries about event firing order.
Previous
Reply
Map
View

Click here to load this message in the networking platform