OnPreRender not getting called in control

W

Winista

[ASP.Net 2.0]

I am creating a composite control. It contains another custom control. There
is some implementation in OnPReRender event of the contained control. When
my composite control is rednered, OnPreRender event is not getting raised in
the conatined custom control. What do I need to do so that PreRender event
gets raised in conatined control?

Thanks
 
W

Winista

Doh!
My fault. I forgot to add the contained control in the composite control's
collection in CreateChildControl method.
 

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,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top