Firing off validations when I want to, not on every function....

D

David Lozzi

Howdy,

I have a page that has fields which have validators. What I want to do is
only validate the fields when the Next button is pressed, not every time a
function is called. The users are allowed to search for data before they
select it. Upon selecting it, its ID is loaded into a textbox. That textbox
is validated. However, as soon as they search for data, the validator is
fired. Is there anyway of disabling the validators until I want them to
validate?

Thanks!!

David Lozzi
 
D

darrel

I have a page that has fields which have validators. What I want to do is
only validate the fields when the Next button is pressed, not every time a
function is called.

private sub button_next_click()...
yourValidatorControl.Validate
if yourValidatorControl.isvalid then...

-Darrel
 

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,756
Messages
2,569,535
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top