H
HLady
I am trying to add some code that I only want to run when the page is
being validated.
First I was trying to catch control that cause the postback by looking
in the __EVENTTARGET of the Page.Request, but for some reason sometimes
this is coming back null. Not sure why on some of my pages there is no
value in the __EVENTTARGET.
I wanted to look at the control and see if it had
CausesValidation=true.
Seems to me there should be another way to know whether the page is
being validated or not. Dont see an event or something I can override,
like OnValidate. I need to get my baseclass to perform something
everytime the page is validated.
being validated.
First I was trying to catch control that cause the postback by looking
in the __EVENTTARGET of the Page.Request, but for some reason sometimes
this is coming back null. Not sure why on some of my pages there is no
value in the __EVENTTARGET.
I wanted to look at the control and see if it had
CausesValidation=true.
Seems to me there should be another way to know whether the page is
being validated or not. Dont see an event or something I can override,
like OnValidate. I need to get my baseclass to perform something
everytime the page is validated.