Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to incorporate client side script
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01408438
Message ID:
01408474
Vues:
24
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform