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:
01408474
Views:
25
You're welcome. I thought that removing disabled will let the button's click to execute.

>Naomi,
>
>This does work. Taking out the disabled setting allows the server side OnClick method to fire. I originally thought, however, that not disabling the button would still enable the button to be pressed again and cause the same situation of having duplicates added, but it doesn't. I am guessing that the form.submit that immediately follows in the client side code takes care of this. Here is the final code for the button:
>
>
><mm:mmButton ID="btnSubmit" runat="server" Text="Save" OnClientClick="this.value = 'Submitting...';
>             ;this.form.submit(); "
>              OnClick="btnSubmit_Click" Width="100px" /></td>
>
>
>Thanks again for your help.
>
>Bob
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform