User Controls Event Lifecycle

J

Jonny

I have a user control made up of a couple of web controls.

I want to be able to set the SkinId on the web controls at run time. To
do this I need to set the skin Id in or before the PreInit event.
However, I can see no way of hooking in to any events within a user
control prior to the OnInit event - which is too late for setting a
SkinID.

Any help greatly appreciated. Thanks, Jonny
 
S

Scott Allen

Only the Page has a PreInit event. You could set the SkinID from the
page object's PreInit, but I'm not sure what you are trying to
ultimately achieve.
 

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
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top