Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
ValidationError Event & Validate() conflict?
posted

Hi -

I've been playing with the WinValidator in a test app; one scenario that is causing me issues which is baflling to me is this:

I have a texteditor associated to a validator - IsRequired. Very simple. I'm also handling the ValidationError event with a switch just like in the docs. That ALL works fine. However, when I call the Validate() method in my Save button click, the ValidationError event fires, but then fails on an invalid object reference to the e.Control.Name in the switch. Note: this event runs fine if fired by the control itself.

How would you then handle the ValidationError event, yet STILL be able to explicity call Validate just prior to saving a form??

Parents Reply Children
No Data