T
tshad
I get the following message from one of my buttons where I have
CauseValidation=false.
Page.IsValid cannot be called before validation has taken place
In my routine I need to do:
if Not IsValid then
exit sub
end if
This is because I have a custom validator on some of my fields and I need to
check this as the function will run regardless of the results of the cusom
validators.
The problem is that I may press the button before any validation has taken
place, which is why I get the error.
Is there a way to check if any validation has taken place, such that I might
do something like:
if some validation done then
if Not IsValid then
exit sub
end if
end if
Thanks,
Tom
CauseValidation=false.
Page.IsValid cannot be called before validation has taken place
In my routine I need to do:
if Not IsValid then
exit sub
end if
This is because I have a custom validator on some of my fields and I need to
check this as the function will run regardless of the results of the cusom
validators.
The problem is that I may press the button before any validation has taken
place, which is why I get the error.
Is there a way to check if any validation has taken place, such that I might
do something like:
if some validation done then
if Not IsValid then
exit sub
end if
end if
Thanks,
Tom