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

  • Thread starter Thread starter David Lozzi
  • Start date Start date
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
 
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
 
Back
Top