Hi,
I'm having trouble with nested master pages (and creating the same behaviour
as Scott Guthrie's blog post http://weblogs.asp.net/scottgu/archi...e-support.aspx )
..
I have a 'Main' master and added a 'Sub' master (based on 'Main') and
finally added a 'Home' content page (based on 'Sub'). However rather than
the expected Content Placeholder control the content page has a comment
saying: "<%-- Add content controls here --%>", but the control isn't
available in the toolbox. This does seem to happen in Scott's demo, can
anyone help?
(Using VS 2008 Pro RTM)
Thanks in advance.
John 2 5346
Hi John,
I'm not sure if I fully understand the question here. I just tried the
nested master page on VS2008, both in Website mode and Web Application
Project mode, which all work correctly. The only difference is that in Web
Application Project mode, when we add a new WebForm, we don't have the
option to "Choose MasterPage", instead, we can open the master page and
select menu "Website/Add Content Page" to create a new content page for
current master page.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Walter,
Thanks for you reply. Following your reassurance I've been back to the
problem and realised my mistake. The problem was that I hadn't added a new
Content Placeholder to the 'Sub' master and so even though I based the
content page on the 'Sub' master there was no placeholder for it to look at.
Hope that helps others who make the same mistake.
Thanks again Walter.
Best regards
John
""Walter Wang [MSFT]"" <wa****@online.microsoft.comwrote in message
news:WT**************@TK2MSFTNGHUB02.phx.gbl...
Hi John,
I'm not sure if I fully understand the question here. I just tried the
nested master page on VS2008, both in Website mode and Web Application
Project mode, which all work correctly. The only difference is that in Web
Application Project mode, when we add a new WebForm, we don't have the
option to "Choose MasterPage", instead, we can open the master page and
select menu "Website/Add Content Page" to create a new content page for
current master page.
Regards,
Walter Wang (wa****@online.microsoft.com, remove 'online.')
Microsoft Online Community Support
"John" <Jo*******@community.nospamwrote in message news:eF****************@TK2MSFTNGP03.phx.gbl...
Hi,
I'm having trouble with nested master pages (and creating the same
behaviour as Scott Guthrie's blog post http://weblogs.asp.net/scottgu/archi...e-support.aspx )
.
I have a 'Main' master and added a 'Sub' master (based on 'Main') and
finally added a 'Home' content page (based on 'Sub'). However rather than
the expected Content Placeholder control the content page has a comment
saying: "<%-- Add content controls here --%>", but the control isn't
available in the toolbox. This does seem to happen in Scott's demo, can
anyone help?
(Using VS 2008 Pro RTM)
Thanks in advance.
John This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Wouter |
last post by:
Hi,
I hope somebody can give me a pointer to solve the following problem.
I want to dynamically load a web usercontrol (ascx) into a content control
of a content page which references a master...
|
by: ilockett |
last post by:
The background:
I have a web app with a simple master page that contains just one
content placeholder.
I have created a web form that then uses this master page. Within the
content...
|
by: xkeops |
last post by:
Thinking of creating a website, most of the pages will have a general
toolbar
menu, a content and a footer.
The content will be the only one who's gonna change but the rest
(header,footer)
will...
|
by: GTB |
last post by:
Hi,
I have a master page, with a single content placeholder.
I create a content page for it with some appropriate content. At this point
everything is working fine.
However I need to change...
|
by: Kevin Frey |
last post by:
We have a data-centric application where all of the "layout" for each data
centric page is to be codified (ie. it is expressed in C# code rather than
being expressed declaratively). This...
| |
by: Rene |
last post by:
I have a master page where I would like to be able to resize the width of
the ContentPlaceHolder.
Once the Content Place Holder control has the with that I want, I don't want
it to change even...
|
by: Lit |
last post by:
Hello,
I created a web app in VS.NET 2005
Created a Master page
I tried to add a new Item to my project and can not select a Master page.
in the dialog I get The option to say I want to...
|
by: Bob |
last post by:
I am trying to obtain values of a submitted form when the form is inside a
content placeholder via a master page. For example:
<asp:content contentplaceholderid="contentMain" runat="server">...
|
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= |
last post by:
Hi there
I've successfully added some .NET validation controls to a page (using
<asp:RequiredFieldValidator ...), however when I try to set the 'display'
property to 'dynamic', my page then...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
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,...
|
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...
|
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,...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |