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,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top