Re: Master Pages not displaying ... ?



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


"NIan" <weinianhe@xxxxxxxxx> wrote in message
news:1146270423.508120.201220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
it looks like you have default content in the Master Page,
If the Child Page have the contentId equal to your default contentId
it will replace the content in the default contentId,
so ContentPlaceHolder1 int your child page, be empty because there is
no content in the child content.

if you want to have the content share through out entire website.
bring the default content in the master page,
and put it out side of the contentplaceholder


Andrew Kidd wrote:
Thanks for the reply.

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>



"NIan" <weinianhe@xxxxxxxxx> wrote in message
news:1146209555.948220.192160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
did you write something in the Master page?




.



Relevant Pages

  • Re: INSERT a record in tables
    ... I think the problem you're having is knowing the ContentID of the parent to ... new ID can be used to populate the child records. ... Professional Access Database Repair ...
    (microsoft.public.access.queries)
  • Re: Master Pages not displaying ... ?
    ... it looks like you have default content in the Master Page, ... If the Child Page have the contentId equal to your default contentId ...
    (microsoft.public.dotnet.framework.aspnet)