I need to prevent the user from clicking twice or more on an insert button, when the insert command takes too long. I've thought about sending the data to insert to a dumb page with no buttons that only says 'Please wait while saving your data'. My problem is that the data to save includes a file to upload to the database, and I can't send it to the dumb page, nor save it to the server disk.
This leaves me with the possibility to disable the insert button after the first click. So I put the following code on the 'onclick' event:
MyInsertButton.Attributes.Add("onclick", "MyInsertButton.disabled=true;Form1.submit();"
Now the insert button doesn't submit.
How can I get arround this problem? NetAngel
This leaves me with the possibility to disable the insert button after the first click. So I put the following code on the 'onclick' event:
MyInsertButton.Attributes.Add("onclick", "MyInsertButton.disabled=true;Form1.submit();"
Now the insert button doesn't submit.
How can I get arround this problem? NetAngel