Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to incorporate client side script
Message
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
How to incorporate client side script
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:
01408438
Views:
112
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
Next
Reply
Map
View

Click here to load this message in the networking platform