Handling Page Events in the Master Page

R

richard.haber

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
 

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,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top