Re: Master Pages not displaying ... ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



A real "Doh" moment for me ... lol .. Thanks for the enlightenment.

"clickon" <clickon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C0AC9631-1778-4067-843A-52D85EDCCF23@xxxxxxxxxxxxxxxx
There is nothing to display in the masterpage apart from the default
images
that are within the ContentPlaceholder this will only display if you do
not
have a Content section that has a
ContentPlaceHolderID="ContentPlaceHolder1"
property in you child page. e.g. like below

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server"></asp:content>

If you have the above line in your child page then it won't display
anything
from the master page because there is nothing to display.

"Andrew Kidd" wrote:



Thanks for the reply.

I've got the default ContentPlaceHolder provided, into which I've put a
couple of images and a horizontal rule,

Here's the source:

<%@ Master Language="VB" CodeFile="MasterPage.master.vb"
Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; >
<head runat="server">
<title>Master Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
<img alt="imgLogo" id="imgLogo" src="images/oreilly_logo.gif"
/>
<img alt="imgHeader" id="imgHeader"
src="images/oreilly_header.gif" /><br />
<hr />
</asp:contentplaceholder>
</div>
</form>
</body>
</html>

"clickon" <clickon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:BC9A6A14-2595-4DA9-8E8F-7DACCA12AA2C@xxxxxxxxxxxxxxxx
Have you got a ContentPlaceHolder control in your master page?

"Andrew Kidd" wrote:

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 subsequent dialog.

I've tried the web application both using the VS 2005 built-in
webserver
and
my local IIS ... but nothing seems to work.

Is there anything obvious that I'm doing wrong?

Thanks in advance

PS Running Windows XP Pro on my laptop and here's a dump from the VS
about
box ...

Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional

Microsoft Visual Basic 2005 77626-009-0000007-41131
Microsoft Visual Basic 2005

Microsoft Visual C# 2005 77626-009-0000007-41131
Microsoft Visual C# 2005

Microsoft Visual C++ 2005 77626-009-0000007-41131
Microsoft Visual C++ 2005

Microsoft Visual J# 2005 77626-009-0000007-41131
Microsoft Visual J# 2005

Microsoft Visual Web Developer 2005 77626-009-0000007-41131
Microsoft Visual Web Developer 2005

Crystal Reports AAC60-G0CSA4B-V7000AY
Crystal Reports for Visual Studio 2005


SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 9.00.1399.00

SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 9.00.1399.00

SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 9.00.1399.00








.



Relevant Pages

  • Re: Master Pages not displaying ... ?
    ... I've just been working through several examples of how to create Master ... Microsoft SQL Server Analysis Services Designer ... Microsoft SQL Server Integration Services Designer ... Microsoft SQL Server Reporting Services Designers ...
    (microsoft.public.dotnet.framework.aspnet)
  • Master Pages not displaying ... ?
    ... I've just been working through several examples of how to create Master ... Microsoft SQL Server Analysis Services Designer ... Microsoft SQL Server Integration Services Designer ... Microsoft SQL Server Reporting Services Designers ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Error messages web app
    ... RB> I am developing a web app.Using master pages. ... RB> which retunrs true or false ... RB> from the SQL server if it is a duplicate key error, display a cutom ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Error messages web app
    ... I am developing a web app.Using master pages. ... from the SQL server if it is a duplicate key error, display a cutom ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Master Pages not displaying ... ?
    ... There is nothing to display in the masterpage apart from the default images ... I've just been working through several examples of how to create Master ... Microsoft SQL Server Analysis Services Designer ... Microsoft SQL Server Integration Services Designer ...
    (microsoft.public.dotnet.framework.aspnet)