Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

Nested Master Page at Runtime

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shapper - 17 Apr 2008 17:00 GMT
Hello,

I am using ASP.NET 3.5 and VS 2008 to create 2 level Nested Master
pages.
I am adding the controls and the content place holders at runtime.

However now my child pages do not recognize the master pages content
place holders.
How can I solve this?

Thanks,
Miguel
Cowboy (Gregory A. Beamer) - 18 Apr 2008 15:39 GMT
If you mean they do not understand the master page highest in the hierarchy,
that is by design. You can only implement at the level just above where you
are at.

The reason for nesting is to allow a single page at top, with multiple
masters below (each filling the content tags in their own way) and then any
number of pages implementing each secondary master, and filling the content
regions from their direct parent.

If you look underneath the hood, it is actually flipped, as a master page is
essentially a user control slapped on a page. It is handled differently, at
least from appearance, but the way it is walked is from page through master
to another master, etc., as if they were sitting on the page and not vise
versa.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> Hello,
>
[quoted text clipped - 8 lines]
> Thanks,
> Miguel

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.