CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 2/15/2006 5:49:07 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 19 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
RDowdall
Asp.Net User
Accessing MultiMode menu in MasterPage2/15/2006 5:49:07 PM

0/0

Hello  - I have a masterpage that contains a  user control menu called MasterMenu.ascx. The problem I have is in accessing the menu from my (aspx) content page . The error I encounter is MasterMenu is not declared

from codebehine of baby.aspx page:

Select Case mode

Case Utility.PageMode.EDIT

lblContent.Text = "Edit Baby"

btnSubmit.CommandName = "Edit"

btnSubmit.Text = "Update"

MasterMenu.Build(Utility.MenuMode.PERSON_START, "")

 

How do I declare MasterMenu?

 

Thanks,

 

Rick

 

dannychen
Asp.Net User
Re: Accessing MultiMode menu in MasterPage2/16/2006 2:03:02 AM

0/0

Rick,

  There are a couple approaches to make this work.  The easiest is to use FindControl and pass in the ID of the mastermenu on your master page.  You'll need to cast it to the correct type.  You may need to add a <%@ Reference VirtualPath="<.ascx file>" %> directive to your page for the user control in this case.

CType(Me.Master.FindControl(<id of the control), MasterMenu).Build(...)

  Another thing you can do is expose the control as a property on your master page and then set the <%@ MasterType %> directive on your content page markup.  Then you can access the control directly:

Me.Master.MyMasterMenu.Build(...)

--
Danny


disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
COPYRIGHTED MATERIAL Creating a Master Page for a Publishing Site Using SharePoint Designer ... Chapter 11: Advanced Data Access: External Data and More ...
SharePoint and MSBI Consultant Dec 4, 2008 ... Worked on master and content pages, URL rebasing in master page, accessing master page from code and nested master pages. Worked on new ASP. ...
Tag: tom oberheim Oct 22, 2008 ... in multi mode the Matrix12 has a detune parameter.. the Xpander only .... back to OBERHEIM SYNTH MENU - zurück zum OBERHEIM SYNTHESIZER MENÜ ...
KEA misd(다중 명령 단일 데이터 스트림), multimode optical fiber(다중 모드 광 섬유) .... media access control address(매체 접근 제어 주소), media attachment ...
the vast, incomprehensable linking scheme government: GPO Access: Official Federal Government Information At Your ...... DVD Burner · Enterasys RoamAbout Multimode Wireless LAN Client PC Card ...
Search Engine at Tomi Engdahl's electronics page Kanavataulukko, Attack on Pay-TV Access Control Systems, Bens Cable Box ..... Com, Tommy's pinout collection, HELP PC 2.1, Direct I/O port access under ...
CAKEWALK SONAR 7 - NOW WITH CONCLUSIONS! [Archive] - Harmony ... so I don't even know how to access the thing. What I can do is provide a screen shot of the interface (which shows the Options menu for host ...
WebPlus 9 Companion choose WebPlus Help from the Help menu to access online help. ..... page, aligned with master page elements (as discussed later in the. chapter). ...
(WO/2005/001656) INTERNET-BASED BRAND MANAGEMENT AND MARKETING ... With Multi-Mode Virtual Kiosks so simple and easy to access, consumers can be more ...... Upload a Brand Resource File From the"Data Link Master"page, ...
2005–2006 to provide customers with access to the latest Pelco. technologies at their dealer and distributor ...... Multimode Fiber Support for Distances up to 6 km ...




Search This Site:










howto control menu items max display level per parent item basis

craeting custom validator and adding dynamically

app_themes subfolders issues

hiding sitemapnodes in menu from sitemapprovider

how to remove the arrow mark from the menu navigation control

how to call multiview(view) from masterpage

specifying path for resources

treeview with asp:view

menu/flash z-index issue in firefox 2.0?

help with sitemap - menu controls

css style overridden

navigation menu does not show icons

help with css button color scheme

contents div of hebrew master page - disapear when maximize window

ad rotator dilema

trouble linking a menu control using sitemap datasource to multiview control?

menu control horizontal divider between certain items.

how can i change menu dynamically...

programatically setting skinid

menu control and image control

shared master page properties accessible from codebehind

menu control and theme

how-to: register a css style block from a content page?

masterpage css problem

contentplaceholder size

treeview control does not display levels properly

treeview control

problem grasping how i could adapt my site to make use of the navigation controls

asp .net 2.0 in ie 7

how to tell a user control who its daddy is

  Privacy | Contact Us
All Times Are GMT