473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.
Aug 4 '10 #1

✓ answered by yimma216

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

4 1774
MrMancunian
569 Expert 512MB
When you have a contentpage (which inherits it's lay-out from your masterpage), you can choose to set the ContentPlaceHolder 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
Aug 5 '10 #2
I have default that to content master page. But the changes are not inherited.

Here is the code
Expand|Select|Wrap|Line Numbers
  1. <%@ Master Language="C#" MasterPageFile="~/CS.master" AutoEventWireup="true" CodeFile="feature.master.cs" Inherits="product_feature" %>
  2.  
  3.  
  4. <asp:Content ID="contMain" ContentPlaceHolderID="cphMain" Runat="Server">
  5.  
  6.             ~~~~Something    
  7. <asp:ContentPlaceHolder ID="cphFeatureCentre" runat="server"></asp:ContentPlaceHolder>
  8. ~~~~~Some Codes            
  9. <asp:ContentPlaceHolder id="cphFeatureRight" runat="server"></asp:ContentPlaceHolder>
  10. ~~~Some Code
  11. </asp:Content>
  12.  
  13.  
  14.  
Aug 8 '10 #3
MrMancunian
569 Expert 512MB
So, which content should be the same as the master? This piece of code isn't telling a lot...

Steven
Aug 9 '10 #4
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
Aug 9 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jester | last post by:
I'm pretty new to C# so please be gentle. I want to declare a variable for a user's "displayName" pulled from Active Directory based on login. I've gotten this working on a regular aspx page...
4
by: Steve Franks | last post by:
I have this cool nested master page scenario working great. However what is the correct way to be able to access a strongly typed property at the top level master from a content page that has a...
1
by: phil1bruening | last post by:
Hello! I need to access master page controls from within content pages. Wow can I do that??
5
by: Ryan | last post by:
Is there any way to apply a master page to existing pages that weren't previously using a master page? VB 2005. Thanks, Ryan
2
by: Bren | last post by:
Hi All I am just in the process of taking the leap into .net 2 and vs 2005 and a I have come across a bit of a problem. I have created an Intranet app and have the following folder structure:-...
3
by: Rolf Welskes | last post by:
Hello, for a large web site project we would like to use nested Master Pages. Unfortunely VS2005 is not able to show pages in design mode when nested Master pages are used. This has the...
1
by: thejackofall | last post by:
I can use a good help here with what looks like a simple problem. I have a control called Header.ascx in /Control/System directory, where / is my web application directory. The header is used...
2
by: Argirop | last post by:
I have a page Default.aspx. Its first line is the following: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="default.aspx.cs"...
1
by: ckerns | last post by:
When I start a project I will run periodically. After a while the master page stops being displayed. Then, the default page shows. What causes this? What tells the default page to show the...
5
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi guys I'm trying to make my code as streamlined as possible, and add CSS file references dynamically when they are required, for example, if a page contains a webcontrol, then the related CSS...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.