Justin Cooney
Web Development Tips and Examples
Month: August 2011
-
Today I am looking into setting up IIS 7 on a new Windows 2008 server and getting it to serve an ASP.NET 2.0 built Web Site. I am used to doing this using IIS 6 on Windows 2003, but it looks like things have changed quite a bit with IIS 7. In my case the…
-
When using JavaScript on a ASP.NET Webforms page one can register the JavaScript function to execute using the OnClientClick attribute of the asp:button control. This can be quite usefu,l for example, when adding a script to stop duplicate submissions. However, it is important to correctly disable the button control since using the wrong command will cause…
-
To prevent forms from being submitted more than once I sometimes like to add a simple JavaScript function to the Submit button that disables the button when it is clicked. This does not provide a complete guarantee that the data is not sent twice, but it is effective at reducing the risk of multiple submissions.…