How to disable double click for submit button?
how to disable double click for submit button? i am facing duplicate entries problem.
4 Answers
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
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 6, 2014, 8:00 PM EST
Girish Sapariya159 reputationPosted Jan 6, 2014, 8:03 PM EST
You can set "Enable" property of button to "false" once it is click.
And later after you have done with your entries reset the form and then set "Enable" property of button to "true".
Hope this helps you... :)
Hardik PatelRank #4,439 · 343 reputationPosted Jan 6, 2014, 9:43 PM EST
i tried it but it's not working.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jan 7, 2014, 1:07 AM EST
btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
for this, you have to set UseSubmitBehaviour="false"