CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 9/25/2004 3:00:27 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
yaip
Asp.Net User
Accessing a control in MasterPage9/25/2004 3:00:27 PM

0/0

I have a MasterPage on which I have a LoginView control. I am showing a Menu under LoggedInTemplate. I want to access this control (Menu1). I have tried the following:

Menu1.Items.Add(masterItem)

But that doesn't work.
Thanks

I love computers because: MY WISH IS THEIR COMMAND :)

<Website>

Fredrik N
Asp.Net User
Re: Accessing a control in MasterPage9/26/2004 7:53:01 AM

0/0

Do you make the call to the Menu control in the code-behind of the MasterPage or ContentPage?

Have in mind that the controls are not available in the Content page if you don?t use Master.FindControl or expose the controls from the Master pages through a property.
/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
yaip
Asp.Net User
Re: Accessing a control in MasterPage9/26/2004 4:32:47 PM

0/0

I am not accessing the control on a Content page but Master Page itself. I want to add a few items to the Menu control. I put the Menu control in LoginViws because I want to show the control to LoggedIn Users only.

I just was thinking...I have my Menu control on a Master Page, On the Master Page, I call a method to load the MenuItems from the database. Does this mean that since I have Master Page attached to several Content Pages, the call to load the Menu will be made each and every time I load a Content Page? To improve my performance, how would I avoid that?

Thanks

I love computers because: MY WISH IS THEIR COMMAND :)

<Website>

Fredrik N
Asp.Net User
Re: Accessing a control in MasterPage9/26/2004 9:27:30 PM

0/0

Ok, you can use the FindControl method to get the Menu control:

Menu myMeny = LoginView1.FindControl("Menu1");

/Fredrik Norm?n NSQUARED2
Microsoft MVP, MCSD, MCAD, MCT

Cornerstone

My Blog, ASP.Net 2.0 etc
yaip
Asp.Net User
Re: Accessing a control in MasterPage9/27/2004 2:12:10 PM

0/0

I am able to do this without having to use FindControl method if I have Menu OUTSIDE my LoginView but not when it is INSIDE.
Thanks

I love computers because: MY WISH IS THEIR COMMAND :)

<Website>

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Professional ASP.NET 2.0 Authors: Bill Evjen, Scott Hanselman, Farhan Muhammad, Srinivasa Sivakumar, Devin Rader, Pages: 1253, Published: 2005
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Professional C# 2005 with .NET 3.0 Authors: Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Pages: 1748, Published: 2007
Pro ASP.NET 2.0 Website Programming Authors: Damon Armstrong, Pages: 641, Published: 2005
ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications Authors: Chris Love, Pages: 339, Published: 2007
Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit: visual web developer 2005 express edition starter kit Authors: David Sussman, Alex Homer, Pages: 312, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Special Edition Using Macromedia Studio MX 2004: The Only Macromedia Studio MX Book You Need. Authors: Michael Hurwicz, Pages: 1052, Published: 2004
Pro ASP.NET 2.0 in C# 2005 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1255, Published: 2005

Web:
Introducing ASP.NET 2.0 Master Pages Using that reference, you have direct access to the controls in the master page. This is a very powerful feature that gives content pages complete control ...
p2p.wrox.com Forums - Access Master page control from Content page. p2p.wrox.com Forums - access master page control from content page. ... How can I access controls of Master Page from Content Page? ...
Accessing the controls and methods of a MasterPage (ASP.NET ... Accessing the controls of a MasterPage from inside a Web Form. If you wish to access a control that's inside the MasterPage, you need to use the ...
ASP 2.0: How to access Master Page from Web User Control on Page? Talk about ASP 2.0: How to access Master Page from Web User Control on Page?
Accessing a control in MasterPage - ASP.NET Forums I have a MasterPage on which I have a LoginView control. I am showing a Menu under LoggedInTemplate. I want to access this control (Menu1). ...
Accessing user control in master page from any content page Accessing user control in master page from any content page. ... I have a user control named header.ascx in a master page. ...
Working with ASP.NET Master Pages Programmatically However, you can use the FindControl method to locate specific controls on the master page. If the control that you want to access is inside a ...
Accessing skmmenu control in Master Page - .Net Development I have menu column on the left side of my page that is contained in my Master page. Within that menu is a list showing how many tasks a user ...
DotNetSlackers: Accessing controls on a masterpage Aug 3, 2006 ... Access the controls on a master page. ... NET Control? more; Accessing Data Just Got a Lot Easier with the ASP.NET 2.0 Data Controls Session ...
Access property and control of master page from a customized ... Access property and control of master page from a customized parent page class. Get answers to your questions in our .NET ASP forum.




Search This Site:










running a windows application on the windows 2003 server

problem with word add ins

google map module - download free trial version now

role and management

problems with the .dll

database size - how to manage/reduce?

weird bc30451 error during migration from 1.1 to 2.0 of a website (check this out!!!)

e-mail campaign manager release 1.0

reg "registerclientscriptblock"

masterpage and menuitem navigateurl

profile - lastupdateddate / lastactiviydate

slow ...anyone have a theory?

dotnetnuke navibar for dnn3

where did the lightning bolt go for page events in nov ctp?

small problem building a module

logging application block basics

dnnjungle templates update example

silent paypal transaction

error trying to open production site for the first time

tab url redirect

how to assign a role directly?

for different strwqlquery integrating subroutines

c# web service and web site hosting

"page cannot be found" friendly url problem

toolboxitem problem

vs 2005 not showing asp controls

installation problem for .text

bc30554: 'photosize' is ambiguous.

"unable to automatically step into the server. the remote procedure could not be debugged" error

enterprise manager!

 
All Times Are GMT