Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Stop JavaScript code running when C# validation failed
Eric Mbiada
May 16 2017 10:14 AM
306
Reply
Hello
I am trying to stop the JavaScript code to run when the data is found in the table
(
dt.Rows.Count > 0
). At the moment the code is not inserting data in the database (that what
I want) but the JavaScript continues running because I am still getting the successful insert
message.Please see de code attached
Thanks for your help
Eric
Attachment:
insertConsent.rar
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
File path stored. How to store other data into DB ?
How to convert date formt from MM/dd/yyyy to yyyy/MM/dd ?