We help IT Professionals succeed at work.
Get Started

.net nested master page wont display

dcmk asked
Last Modified: 2013-11-07
Hi, i have the root.master page working it display, the first ContentPlaceHolder1 gets overridden.. by the contents from default.aspx.  The second placeholder doesnt get over-ridden by the second master page.. not having much luck with these.  here is from 'root.master'

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

<td colspan="5" valign="top" width="532" align="center"> <!--532-->
                          <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">



<TD WIDTH='267'>
      <!-- OFFERS -->
       <asp:ContentPlaceHolder id="rhs1" runat="server">

this is rhs.master

<%@  Master Language="VB" MasterPageFile="~/root.master" AutoEventWireup="true" CodeFile="rhs.master.vb" Inherits="MasterPage2"  %>

<asp:Content ContentPlaceHolderID="rhs1" runat="server">



contents if it matters form default.aspx would be :

<%-- Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" --%>

<%@ Page MasterPageFile="~/root.master" src="cb_default.aspx.vb" Inherits="WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="Form1" runat="server">
<asp:formview runat="server" id="f1">

                <table border="1" bordercolor="#000000" bgcolor="#ffffff">  <!--Beginning of flash object-->
                           <td colspan="5" bgcolor="#000" style="color:#FC3; text-align:center; font-size:36px; ">
                                    <blink>Think Blink</blink>
                    <td width="50%" style="color:white; text-align:center; font-size:16px; ">ccdsfds
                        <asp:HyperLink  ID="link1" text=<%#  Container.DataItem("productName") & ":: £" & Container.DataItem("price") %> NavigateUrl=<%# "http://www.bath-depot.co.uk/productDetails.asp?prodID=" &  Container.DataItem("itemID") %> runat=server >
                        </asp:HyperLink > 
                      <td width="50%" style="color:#FC3; text-align:center; font-size:16px;">
                        <asp:HyperLink  ID="HyperLink1" text=<%# Container.DataItem("available") & " Available!" %> NavigateUrl=<%# "http://www.bath-depot.co.uk/productDetails.asp?prodID=" & Container.DataItem("itemID") %> runat=server >
                        </asp:HyperLink > 
                    <td colspan='2'>
                    <asp:Image ID="image1" AlternateText="image1" ImageUrl=<%# "http://www.bath-depot.co.uk/" & Container.DataItem("image")  %> width="432" height="378"  runat=server />


                    <td colspan='2' style="color:#FC3; background:#000; font-size:20px; text-align:center;">
                     <script type="text/javascript" language="JavaScript">  
                                          TargetDate = "<%# "17/02/2011 " & Container.DataItem("targetTime") %>";
                                          BackColor = "#000";
                                          ForeColor = "#FC3";  
                                          CountActive = true;  
                                          CountStepper = -1;
                                          LeadingZero = true;  

                                          DisplayFormat = "<font color='white'> %%H%% </font>Hours,<font color='white'> %%M%% </font>Minutes, <font color='white'>%%S%% </font>Seconds left!";
                                          FinishMessage = "Offer Ended! Await next offer at 10am";
                              <script type="text/javascript" language="JavaScript" src="../countdown.js"></script>

  <tr><td colspan='5' width='100%'><img width='100' height='15' src='images/spacer.gif' /></td></tr>
                <td colspan="5" align="center">
                       <img src="images/Bland.jpg" width="506px">

             <tr><td colspan='5' width='100%'><img width='100' height='15' src='images/spacer.gif' /></td></tr>        
            <tr><td colspan='5' width='100%'><img width='100' height='15' src='images/spacer.gif' /></td></tr>
            <td colspan="5" width="100%" align="center">
                  <!--div style="position:relative;top:-55px"-->                    
                          <img src="images/shoptag.jpg">



Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE