Page.RegisterOnSubmitStatement problem

G

Gandalf

If I have a javascript function on my page that I wish to be called
immediately before the form is submitted, using
Page.RegisterOnSubmitStatement might seem the ideal method to use. However,
using it to add a call to my function (in the form OnSubmit attribute)
places the call BEFORE the call to any validators...which is not what I want
to happen. I want to call my function only if the validators have returned
true. If I hard-code the OnSubmit attribute in the .aspx page the call to
the validators gets placed before the call to my function, but I really need
to be able to add it dynamically from the codebehind. Is there a way to do
this?

Thanks in advance.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top