4
Answers

how to disable double click for submit button?

Photo of Hardik Patel

Hardik Patel

11y
2k
1
how to disable double click for submit button?  i am facing duplicate entries problem.

Answers (4)

0
Photo of Jaganathan Bantheswaran
NA 21.9k 2.2m 11y
The other solution is,

btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());

for this, you have to set UseSubmitBehaviour="false"
0
Photo of Hardik Patel
NA 376 332.7k 11y
hi girish,

i tried it but it's not working.
0
Photo of Girish Sapariya
NA 314 9.3k 11y
Hi Hardik, 
         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... :)
0
Photo of Satyapriya Nayak
NA 53k 8m 11y
http://www.c-sharpcorner.com/UploadFile/suthish_nair/disable-a-submit-button-during-post-backs/