Client Validations

G

Guest

Hello,

I have added an attribute "onclick" and a javascript to perform some tasks.
The name of the function that needs to be called is say : confirmSave();
The problem is that the page also has validators.
The button is rendered as :
.... onclick="return ConfirmSave();if (typeof(Page_ClientValidate) ==
'function') Page_ClientValidate(); "
The if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate();
part is added by .NET for performing client side validation by some
validation controls present on the page.
I want to have my function called after the client side validation is
completed.
Is it possible to change the order of adding the attributes.
I am adding the attributes in the button prerender event.
I am unable to figure out where/when exactly the client side validation
script generated by .NET is added.
Any suggestions would be greatly helpful.
Thank You,
Pradeep S
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top