required field validators and other code execution

R

Robin

In an ASP.Net Web page that has multiple Required field validators and a
command button. The when clicking the button the click event does not occur
until all validator conditions are meet.

Is it possible for when clicking on the button to run the code before the
validator checks?
 
A

ajamrozek

You might have to make all the RequiredFieldValidators, Custom
Validators so that validation occurs on the server instead of the
client.
Then set CausesValidation=False on the button. Then at the end of the
Sub that handles the button click, put Page.Validate
Just an intitail thought, not sure if that will work though.
 

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,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top