472,125 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,125 software developers and data experts.

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.



Dec 4 '06 #1
0 1151

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.