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





Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 3/24/2008 4:24:30 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 11 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
celoftis
Asp.Net User
Problem accessing object from content page of Nested master page...3/24/2008 4:24:30 PM

0/0

Using VS2005, VB code behind,

I have a site that uses nested master pages. For the sake of this post lets call them main.master and nested.master respectively.

On my nested.master page I have an asp:Label control (but it could be any control) that I want needs to be dynamically changed by content pages having nested.master as its master page. Nromally (when not using nested master pages), I would use this code in my content page code-behind:

CType(Master.FindControl("lblMyLabel"), Label).Text = "Some information for you..."

Problem is that when I run this code .NET does not look into the main.master for the control but into nested.master instead. Is there a way for me to get a reference to the nested.master's page elements versus the main.master?

celoftis
Asp.Net User
Re: Problem accessing object from content page of Nested master page...3/25/2008 12:43:58 AM

0/0

Answer was previously post - I should have read this post first...

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



Search This Site:


Meet Our Sponsors:



Other Resources:

BMP entity needs datasource property set - borland.public.bes.appserver ... BMP entity needs datasource property set, > ROOT > NEWSGROUP > Borland Forums > borland. ... problem accessing object from content page of nested master page...
25 Feet Below the Surface : ASP.NET 2.0: Accessing dynamic controls ... Recently I got a problem where the customer was trying to access dynamically created controls from a content page while using nested master pages. I thought it ...
The Official Microsoft ASP.NET Site The most common form of content and master page interaction originates from the content page. ... Nested Master Pages. Scott's Book ...
Interacting with the Master Page from the Content Page : The Official ... The Master property returns an object of type MasterPage (also located in the ... Accessing and Updating Data in ASP.NET. ASP.NET Master Pages: Tips, Tricks, ...
ASP.NET Master Pages Tips and Tricks ... a few different ways to get around the nested master page design-time issue. ... of accessing the "value" of an object in a MasterPage from the content page. ...
Master Page and PreInit - It Could Be Done! The problem is very simple. If you have the following content page (in master page) ... The reason of my problem was that for master of the page I use nested master. ...
Master Pages: Master Your Site Design with Visual Inheritance and Page ... This is precisely the problem that Master Pages in ASP.NET 2.0 solve simply and cleanly. ... content to populate pieces of Master Pages that require "filling out. ...
ASP.NET Master Pages Tips and Tricks Figure 3: accessing a master page's public property from a content page by using ... Master pages can be nested inside of other master pages in cases where an ...
Microsoft Certified Professional Magazine Online | Feature Article ... ... with nested master pages, or content pages that ... a master page by accessing properties within the new Master object through one of two methods. ...
2543 - Core Web Application Technologies with Microsoft Visual Studio ... Nested Master Pages. Demo: Nesting Master Pages. Module 5 - Managing State. Overview ... Work with Cache Object. Module 6 - Accessing and Displaying Data ...
25 Feet Below the Surface : ASP.NET 2.0: AcquireRequestState fires ... PROBLEM/TROUBLESHOOTING =I came across this problem while ... ASP.NET 2.0: Accessing dynamic controls from content page when you have nested master pages. ...


 
All Times Are GMT