Description:What is happening in my case is user submit the form multiple times when form is already submitted and takes time because of the slow server response time suggestion needed to Stop or prevent form's multiple submissions on client side
Posted by: Jhon Anthony | Posted on: May 09, 2018
1
I am assuming by your mentioned tags that you are working in asp.net so you can use following code.
In markup on client event you can call your validate() method as shown.
Then you can update your validate() method by adding following chucks in your code.
What it will do is when your client side validation is true then it will add a class "btnDisabled" and once the class is added it will stop submitting the form again. After successful submission if it is landing on the same page then you need to explicitly remove "btnDisabled" class for next submission.
Replied by: Tabish Usman | Replied on: May 11, 2018