in my custom validator ServerValidate function i set
args.IsValid = False
but the page execution continues like the page is valid and the validation
summary doesn't show the error message .
how come?
and how should it work, if the args parameter is passed byval?
it won't go anywhere outside of the function scope isn't it?
is this a bug in vb.net because trying to set it to byref causes compilation
error,
or i'm missing here something?
please advise from your experience, i don't see how to solve this.
nothing special about the code, just setting the args.IsValid = False in the
ServerValidate function, in debug mode i see that the function is called,
what else to check?
i can't set the page.IsValid since it's read-only.
what i will point is that i'm overriding the validate method like that:
Public Overrides Sub Validate()
If bCheckSomethging Then
... update some fields.
End If
MyBase.Validate()
End Sub
but it always calls the validate method - is there a problem the way it's
written?
TIA, z.