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:
01408445
Vues:
36
Here is another sample message #1302237

>I had posted the following message in the ASP.NET forum and eventually found a link to solve a problem of restricting a web command button from being clicked twice.
>
>Re: Stop command button from being clicked twice Thread #1408368 Message #1408381
>
>The link shows how to add client side code to solve this. Now, since I have not incorporated any client side code into my web app, I am at a loss as to how to do this in my web form. The following shows the aspx code for the button I need to add this code:
>
>
><td style="width: 177px; height: 40px;" align="center">
>             <mm:mmButton ID="btnSubmit" runat="server" Text="Save"   OnClick="btnSubmit_Click" Width="100px" /></td>
>
>
>The OnClick method is, of course, server side code.
>
>The solution found on the link says to add the following:
>
>
><form action="ProcessFormData.asp"
>    onsubmit="alert('The form is being submitted.');">
>  <input type="submit" id="btnSubmit" value="Submit"
>    onclick="this.disabled=true;this.value='Submitting...';
>             this.form.submit();"
>  />
></form> 
>
>
>I have posted this in the MM.NET forum as my web page utilizes their templates. How do I incorporate this above suggested solution into my MM.NET derived web form?
>
>TIA
>
>Bob
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform