Validation before or after CreateChildControls

P

Paul

Hi all,

I have a composite control which is basically a wrapper control for
child controls and validators. It's a little hacky, but I could
previously check from its child validators to see whether the child
controls have passed validation to determine the colors and images to
display.

This was working perfectly previously, but now it appears that
validation is occuring after CreateChildControls. I don't know what I
changed to break this, but it makes the display logic for the custom
container control a lot more complicated.

Do any of you know how to ensure that CreateChildControls occurs after
validation? I've tried calling Page.Validate() separately, but that
appears to require CreateChildControls to complete.

Thanks,

Paul
 

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

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top