473,699 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are Nested Master Pages supported in Framework 2.0/VS 2005?

I've seen reference to Nested Master Pages in some of the
documentation, but I haven't been successful in creating one in VS
2005 (Framework 2.0). I just did a search on it, and "How To:
Walkthrough" on Master pages listed VS 2008 and Framework 3.5 as pre-
requisites.

If I do an "Add New Item" selecting "Master Page", the "Use
MasterPage" check box is grayed out, so it won't let me create it in
VS 2005. Is there a way to "trick it"? Or is it just not supported in
the framework? (I tried creating a new Master page, and then adding
the "MasterPage=".. ." attribute in the head, but it didn't like that.
And I tried creating a WebForm page, then renaming it from Child.aspx
to Child.Master, and changing the "Page" in the header to "Master",
but it didn't like that either.)

Thanks in advance for any help.
Jul 20 '08 #1
4 1592
Hi

Check this out

http://aspalliance.com/897_Tips_for_...DesignTime.all

"The only downside is that VS 2005 only supports nested master page
editing in source-view,
and doesn’t support it in the WYWSIWYG designer (note: obviously it
does support editing them
when the master-pages are not nested)."

Best of luck

-------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
Jul 20 '08 #2
On Jul 20, 3:37 am, Munna <munna...@gmail .comwrote:
Hi

Check this out

http://aspalliance.com/897_Tips_for_..._and_VS_2005_D...

"The only downside is that VS 2005 only supports nested master page
editing in source-view,
and doesn’t support it in the WYWSIWYG designer (note: obviously it
does support editing them
when the master-pages are not nested)."

Best of luck

-------
Munna

http://www.munna.shatkotha.com/blogw....shatkotha.com
Munna,

Thanks for that link. It was pretty helpful. But it's still a step
beyond where I am. Specifically, he says in the first paragraph:
>For example, you could define a top-level master-page called “MainMaster..ma ster” that defines a >common logo header and footer, and defines a content-placeholder for the page called “content”. >You could then definetwo sub-masters beneath it
Okay, I do know how to define the top level master. But how, exactly,
do you define a submaster?
I've tried adding a new MasterPage item, then adding a MasterPageFile
attirbute, and it didn't seem to like that, and I've tried adding a
new aspx page, then renaming it to Child.master and changing the
"Page" attribute to "Master", and it didn't like that either.

I appreciate the help, though. At least I know it CAN be done, and I
can keep on trying.
Jul 20 '08 #3
the trick to remember is that master pages are just control on a page
that refers to them (they do not contain pages). so a page can refer to
master1. master1 can refer to master2 (its the content for master2), and
master2 can refer to master3 and so on.

-- bruce (sqlwork.com)
daveh551 wrote:
On Jul 20, 3:37 am, Munna <munna...@gmail .comwrote:
>Hi

Check this out

http://aspalliance.com/897_Tips_for_..._and_VS_2005_D...

"The only downside is that VS 2005 only supports nested master page
editing in source-view,
and doesn’t support it in the WYWSIWYG designer (note: obviously it
does support editing them
when the master-pages are not nested)."

Best of luck

-------
Munna

http://www.munna.shatkotha.com/blogw....shatkotha.com

Munna,

Thanks for that link. It was pretty helpful. But it's still a step
beyond where I am. Specifically, he says in the first paragraph:
>For example, you could define a top-level master-page called “MainMaster.mas ter” that defines a >common logo header and footer, and defines a content-placeholder for the page called “content”. >You could then define two sub-masters beneath it

Okay, I do know how to define the top level master. But how, exactly,
do you define a submaster?
I've tried adding a new MasterPage item, then adding a MasterPageFile
attirbute, and it didn't seem to like that, and I've tried adding a
new aspx page, then renaming it to Child.master and changing the
"Page" attribute to "Master", and it didn't like that either.

I appreciate the help, though. At least I know it CAN be done, and I
can keep on trying.
Jul 20 '08 #4
On Jul 20, 2:21 pm, bruce barker <nos...@nospam. comwrote:
the trick to remember is that master pages are just control on a page
that refers to them (they do not contain pages). so a page can refer to
master1. master1 can refer to master2 (its the content for master2), and
master2 can refer to master3 and so on.

-- bruce (sqlwork.com)

daveh551 wrote:
On Jul 20, 3:37 am, Munna <munna...@gmail .comwrote:
Hi
Check this out
>http://aspalliance.com/897_Tips_for_..._and_VS_2005_D....
"The only downside is that VS 2005 only supports nested master page
editing in source-view,
and doesn’t support it in the WYWSIWYG designer (note: obviously it
does support editing them
when the master-pages are not nested)."
Best of luck
-------
Munna
>http://www.munna.shatkotha.com/blogw....shatkotha.com
Munna,
Thanks for that link. It was pretty helpful. But it's still a step
beyond where I am. Specifically, he says in the first paragraph:
For example, you could define a top-level master-page called “MainMaster.mas ter” that defines a >common logo header and footer, and defines acontent-placeholder for the page called “content”. >You could then define two sub-masters beneath it
Okay, I do know how to define the top level master. But how, exactly,
do you define a submaster?
I've tried adding a new MasterPage item, then adding a MasterPageFile
attirbute, and it didn't seem to like that, and I've tried adding a
new aspx page, then renaming it to Child.master and changing the
"Page" attribute to "Master", and it didn't like that either.
I appreciate the help, though. At least I know it CAN be done, and I
can keep on trying.
Well, I did finally get this to work. Just for anyone following this
thread:

I did an "Add New Item", selecting WebForm, and told it to use the
MasterPage Master.master. But I changes the name from SubMaster.aspx
to SubMaster.maste r

Then I went into SubMaster.maste r and changed the "Page" directive at
the top to "Master", and went into SubMaster.Maste r.cs and changed the
class that it inherits form System.Web.UI.P age to
System.Web.UI.M asterPage.

From there on, it pretty much seems to work as expected.
Jul 21 '08 #5

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

Similar topics

1
1309
by: Lakshmi Narayanan.R | last post by:
Hi Experts, Working with Visual Web Develope 2005 Express, as per the example given in the URL http://msdn2.microsoft.com/library/x2b3ktt7.pf , the following error comes. "Could not find any attribute 'Master' of element 'Master' ". The attribute available there is 'MasterPageFile'. So, if any one know the solution with nested
5
2433
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the web part page? Does it take place at the page level? ...or the content area level? 3. Where is the Web Part Manager instantiated? ...in the Master Page? ....Content Page? ...elsewhere?
4
2466
by: Steve Franks | last post by:
I have this cool nested master page scenario working great. However what is the correct way to be able to access a strongly typed property at the top level master from a content page that has a nested master page between the content page and the top level master? For example, assume the very top level master is called CompanyWide.master. And the nested master page is called DepartmentA.master, which inherits from CompanyWide master. ...
5
1717
by: Nalaka | last post by:
Hi, When an image is put on a master page... the url to th eimage is set relatve to the master page. (at least don't know how top set an absolute URL to image) But the when a content page is shown, all images (inclding masterpage) are resoved relative to the content page location. get get around this I copy all master page images to the sub folders too......
9
2512
by: Andrew Kidd | last post by:
Hi, I've just been working through several examples of how to create Master pages and then create content pages which are linked, but I cannot see the Master page when I'm viewing the content page in "Design", nor do I see it when I'm viewing the page in the browser. I'm adding the Master page through the Add New Item dialog, and creating Web Forms with the "Select Master Page" option checked, then selecting the Master page from the...
3
1701
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the consequence that also each content page cannot be used in design mode. It is impossible to design hundrets of pages in source mode without design
0
2653
by: bluegrasslover | last post by:
I've gotten a couple of emails about this problem lately so I'm going to post the solution that someone emailed me a while back. When you create a master page visual studio automatically adds a <-- doctype ... statement near the top of the master page. Somehow this forces some w3c standard where scrolltop isn't supported. I removed the doctype declaration from my masterpage and everything works fine. Actually I changed the dtd type to...
8
3044
by: =?Utf-8?B?QW1yaXQgS29obGk=?= | last post by:
Okay, after much research, I have discovered a few interesting things in ASP.NET. I have a MasterPage that has a WebForm on it and it looks like this: <body> <form id="controls" runat="server"> <div id="bodyColumn"> <asp:ContentPlaceHolder id="bodyContentPlaceHolder" runat="server"> </asp:ContentPlaceHolder>
1
2059
by: daveh551 | last post by:
Okay, another problem I'm having with nested master pages on VS 2005. I've got a MasterPage,master, as SubMaster.master, and a DesignTime.master, and a content page, default.aspx. The DesignTime master is a single level master page incorporating both the content of the MasterPage and the SubMaster, so that I can get around the fact that you can't see content pages in Design mode if they use nested masters.
0
9187
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8936
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8894
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7777
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.