473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to get menu items from master on Content page

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
Jun 18 '07 #1
0 1162

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bart | last post by:
Hi, I have a menu on my master page. When I click on a menu item the state is reset after the page is redirected to the NavigateURL. How can fix this? Thanks Bart
0
by: Jay | last post by:
I am having a lot of trouble getting the Site Navigation Controls to work. Now I am on to the Menu Control I cannot get the MenuItemClick event to work. For one Menu that is in a master page...
3
by: Joao Batista | last post by:
Hi all, I have a MasterPage with a menu, populated from a database, my problem now is when i chose an option , how can i pass (catch) the value to my products page??? Thanks Joao Batista
6
by: Ben Fidge | last post by:
Hi I've just created a new Master Page for my site and it uses the native Menu control. Strange behaviour is happening on page that use the master page. For some reason, the menu controls...
0
by: RAM | last post by:
Hello, I have created simple ASP.NET application with master page MIMStock.master: <%@ Master Language="C#" AutoEventWireup="true" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
1
by: tomix | last post by:
Hi, I have a master page which contains a menu,i would like to handle post back In the content pages(MenuItemClick event) I tried to do the following in the content page BaseLayout master...
7
by: Jeff User | last post by:
VS2005, Win XP, IE 6.0 Who ever would have thought. My menu looks better in firefox than IE6.0 !! If I create a site menu on a regular webForm it displays ok. Menu is only 2 levels deep (not...
3
by: win | last post by:
I've create menu in a webform. <asp:Menu ID="Menu1" runat="server" CssClass="toolbar" Orientation="Horizontal"> <Items> <asp:MenuItem Text="Master" Value="Master"> <asp:MenuItem...
0
by: nzkks | last post by:
Hi, I am using these: ASP.Net 2.0, VB.Net, Visual Studio 2005, SQL Server 2005 In a asp.net page, I have two multiview controls each has 2 views & its corresponding 2 menu items named Metric &...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.