When does postback validation fire?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top