Hi All,
I have a masterpage that has a usercontrol on it that contains a treeview, I also have a content page inside the masterpage that contains a usercontrol and a gridview in that usercontrol.

I am having problems in that my TreeView is populating a Session object with a categoryID that is then used to populate the datasource for the gridview in the content page. However the SelectedNodeChanged event of the TreeView is occuring AFTER the Load event of the usercontrol that contains my GridView, so basically what occurs is my binding is always one step behind my the actual selected categoryId.

The workaround I have used is basically raising a series of events from the treeview usercontrol to the masterpage and back to the gridview usercontrol.

I find this to be an ugly solution and was hoping that someone could suggest something better.

If I havent been completely clear, please let me know and I will clarify...

Thanks in advance for any input.