database
how we can stop to create extra row in database when click on submit.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suraj SahooPosted Feb 18, 2015, 1:03 AM
If you have any uniqueness with the data for the row being added, then you can use that unique value to check in the db level. That is if added dont add again. Or dispose the context.Savechanges() that context once after a add.
Another way is to disable the Submit click, infact the best way, once clicked disable that button to prevent user to click more times. Use the button id to disable like $("#ID").disable(true); check for other syntax too.
I hope you understand and this helps.
Accept if helps anyway.
Thanks