hi when i click on add button,i want to update the database.Again if i click the add button within 1 min. i dont want to update the database. please tell what to do for that
posted 12 years ago
if i got your question right, then this is not ORM but GUI related.
Just disable the button and start a timer to enable it after one minute. or everytime you click the button, you check the last time the button was pressed. if there is less than one minute in between then do nothing:
did not check this code but something along this line should work: