changes in master page does not apply to nested master pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yimma216
    New Member
    • Jul 2008
    • 44

    #1

    changes in master page does not apply to nested master pages

    hi there,

    I got a Master page and nested master pages in the subfolders.

    Top Level Master page
    Second Level Master page inherited Top Level Master page
    Third Level Master page inherited Second Level Master page

    However, changes (i.e. new images & alt. name) that I made in the Top level master page did not apply to the second or third levels.

    My webpage has a correct front page but not in the sections.

    How can i correct this ?

    thanks.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    When you have a contentpage (which inherits it's lay-out from your masterpage), you can choose to set the ContentPlaceHol der to be default to the masterpage. Furthermore, perhaps you firs need to build your page in order for changes to be shown in VS.

    Steven

    Comment

    • yimma216
      New Member
      • Jul 2008
      • 44

      #3
      I have default that to content master page. But the changes are not inherited.

      Here is the code
      Code:
      <%@ Master Language="C#" MasterPageFile="~/CS.master" AutoEventWireup="true" CodeFile="feature.master.cs" Inherits="product_feature" %>
      
      
      <asp:Content ID="contMain" ContentPlaceHolderID="cphMain" Runat="Server">
      
          		~~~~Something    
      <asp:ContentPlaceHolder ID="cphFeatureCentre" runat="server"></asp:ContentPlaceHolder>
      ~~~~~Some Codes			
      <asp:ContentPlaceHolder id="cphFeatureRight" runat="server"></asp:ContentPlaceHolder>
      ~~~Some Code
      </asp:Content>

      Comment

      • MrMancunian
        Recognized Expert Contributor
        • Jul 2008
        • 569

        #4
        So, which content should be the same as the master? This piece of code isn't telling a lot...

        Steven

        Comment

        • yimma216
          New Member
          • Jul 2008
          • 44

          #5
          Hi Steven,
          I found out the bug. It was not pointing to the correct directory. I missed the / in front of the <img src="/img/title/1.jpg" />

          Thanks every one

          Comment

          Working...