Re: Master Pages not displaying ... ?
- From: "Andrew Kidd" <andrew@xxxxxxxxxx>
- Date: Fri, 28 Apr 2006 13:28:50 +0100
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
.
- Follow-Ups:
- Re: Master Pages not displaying ... ?
- From: clickon
- Re: Master Pages not displaying ... ?
- References:
- Master Pages not displaying ... ?
- From: Andrew Kidd
- Master Pages not displaying ... ?
- Prev by Date: Re: Master Pages not displaying ... ?
- Next by Date: connection string problems with connectionString property of web.config
- Previous by thread: Re: Master Pages not displaying ... ?
- Next by thread: Re: Master Pages not displaying ... ?
- Index(es):
Relevant Pages
|