Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object August 2009 Entries
Prevent Double Post
A few days ago I got an error report to fix. Some web application that I now maintain was inserting duplicate records. After a quick look it became obvious that the users where double clicking the submit button and that made the page post twice and so a duplicate record would appear. A quick fix dor this problem using javascript: <script language="javascript" type="text/javascript"> var haveSubmitted=false; function FirstSubmitOnly() { if (haveSubmitted) return false; haveSubmitted = true; ......

Posted On Wednesday, August 19, 2009 12:26 PM

Copyright © Sglima | Powered by: GeeksWithBlogs.net | Join free