How to access Menu in MasterPage from Content
Hi,
I have a Master Page having asp:Menu controls having datasource as SiteMapDataSource. Depending on the menu item clicked corresponding page loads. I changed the style of the selected menu item using StaticSelectedStyle attribute. but when i clicks any hyper link on that content page which loads another page the menu item style is changing to StaticMenuItemStyle. I want to show the style as StaticSelectedStyle.
How can i do that? I tried accessing that Menu control from content pages page load function. But content page load is calling first and Master page load is calling next . So its throwing exception. Is there any solution for this?
Regards,
Mohan.
|