Problem related to validation and form submission event [Resolved]

Posted by Rasagna under JavaScript on 12/23/2015 | Points: 10 | Views : 1288 | Status : [Member] | Replies : 3
Hii,
I have a problem where onclick event must be performed only after satisfying javascript validation function.I have a function written in javascript named validate() for validating the page in .aspx page. In .aspx.cs page i have submit_click event where i need to perform insertion operation which must be done only after page validation i.e. after satisfying validate() function.how to achieve this?




Responses

Posted by: Rajnilari2015 on: 12/23/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
@Rasagna Sir, if validation fails then return false else true.

For a similar kind of issue, we replied here ( http://www.dotnetfunda.com/forums/show/20857/please-helpthere-is-any-problem-in-jquery-codethis-does-not-display-an )

Hope that helps.

--
Thanks & Regards,
RNA Team

Rasagna, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rasagna on: 12/23/2015 [Member] Starter | Points: 25

Up
0
Down
@Rajnilari2015 thanks.it helped

Rasagna, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajnilari2015 on: 12/23/2015 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 25

Up
0
Down
@Rasagna Sir,Glad that it helped

--
Thanks & Regards,
RNA Team

Rasagna, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response