Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to incorporate client side script
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01408438
Message ID:
01408480
Views:
29
Here is another link I found that describes this anomalous situation:

http://aspalliance.com/articleViewer.aspx?aId=829&pId=-1



>Well, we can invent some slightly complex solution. In button's Click event we would set some hidden field value to 1
>
>In onClientClick event we would check if it's 1 set it back to 0 and return false preventing the second immediate click. We would have to either write this as a JavaScript function or even inject the script.
>
>Sounds quite convoluted solution, may be you should better ask this question also in ASP.NET forums.
>
>>I stand corrected... further testing reveals what I had thought would happen. Not disabling the button still allows for it to be clicked again and posts the record multiple times. This is a catch-22 situation.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform