How to get menu items from master on Content page

S

SAL

Hello,
I have a menu on my Master page that I want to access from my content page.
I seem to be able to get the menu via either:
dim mnu as Menu = Master.FindControl("Menu1")
or
dim mnu as Menu = Me.Form.Parent.FindControl("Menu1")

The only problem is that when I query mnu for HasControls it returns false
and Items.Count is 0 as well.
What I'd like to do is disable a menu item choice from certain pages.

I've tried to do this from the Page_load and PageLoad_completed from the
content pages.

Any help on this???

S
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top