469,613 Members | 1,292 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

Handling Page Events in the Master Page

I have a situation where there are two controls on the master page: a
tree with a menu structure (whose content and structure is customizable
by each user) and a menu control which displays the structure in a more
styled form.

The menu needs to get data from the tree in order to initialize
properly and can do so only after the tree has been initialized so that
its data is available. I can do this on a regular ASP.NET form since I
can override the PreInitCompleted event at which point the tree control
has been initialized.

The problem is that from the master page, I don't see any events that
fire AFTER the controls are initialized. I can't subclass
System.Web.UI.Page since the end users will not want to mess with the
code-behind to implement a custom Page class. I also want to avoid
coupling the two controls by initializing one from the other which
would require too much knowledge about the specifics of their use.

Any thoughts would be greatly appreciated.

Thanks,

Richard

Dec 4 '06 #1
0 1082

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.