troubleshooting Question

Javascript - vb.net ; check for form validation before click event

Avatar of WEhalt
WEhaltFlag for United States of America asked on
JavaScript.NET ProgrammingVisual Basic.NET
2 Comments1 Solution527 ViewsLast Modified:
I have a page that uses vb processes for a cancel and a save button click.  Is there a way to make these buttons check with one of the javascript functions before performing their actions?  

'On this one I would like to verify with the user whether or not they really wish to proceed if any of the values on the form were changed.
Protected Sub btnCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCancel.Click

        BindGrid()

    End Sub

'On this one I would like to run the Business Rule validation before allowing the save
    Protected Sub btnNext_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnNext.Click

        SaveDailyClose()
        Response.Redirect("Disposal.aspx")

    End Sub
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros