Database
how we can stop to create extra row in database when click on submit.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suraj SahooRank #382 · 6.6K reputationPosted Feb 17, 2015, 8:03 PM EST
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