A
AFN
I was just dropped into someone else's code (isn't that always so fun?).
I can't figure out why a custom validation control's server event function
is executing. There is nothing (that I see) in page_load, or elsewhere,
that says page.validate, no control says "causesvalidation=true", and the
AutoEventWireup is set to false. So I would think that the control's
server event function would NOT execute, but it does execute right after
page_load. I want to call page.validate (followed by if page.isvalid ...)
elsewhere, but that means that the event function code will run twice, which
I don't want.
Where else do I look to see why the custom validator's event function is
executing on the server after page_load?
I can't figure out why a custom validation control's server event function
is executing. There is nothing (that I see) in page_load, or elsewhere,
that says page.validate, no control says "causesvalidation=true", and the
AutoEventWireup is set to false. So I would think that the control's
server event function would NOT execute, but it does execute right after
page_load. I want to call page.validate (followed by if page.isvalid ...)
elsewhere, but that means that the event function code will run twice, which
I don't want.
Where else do I look to see why the custom validator's event function is
executing on the server after page_load?