Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Master Pages: Overriding header contnent

Status
Not open for further replies.

suzannea595

Technical User
Apr 5, 2006
8
US
Hi,
I am building a site that uses nested master pages. I want to use a separate style sheet on the nested master. I found info on how to override the master page content and have tried to implement it, but the css on the nested page is not being recognized (it's still pulling the css used on the master page). The code I currently have is below. I have a feeling it's a simple fix but I've been looking at it for so long that I can't see the forest for the trees.

MASTER PAGE HEAD ELEMENT:
<head runat="server" id="Head1">
<link runat="server" id="omfnstyle" href="omfn.css" rel="stylesheet" type="text/css" />
<asp:contentplaceholder id="headContent" runat="server">
<title>Old Mutual Financial Network</title>
</asp:contentplaceholder>
</head>

NESTED MASTER PAGE HEAD PLACEHOLDER:
<asp:Content id="EspanolHeadContent"
ContentPlaceHolderID="headContent" runat="server">
<title>OMFN: En Espa&#241;ol </title>
<link runat="server" href="~/espanol/espanol-spanish.css" type="text/css" rel="stylesheet" />
</asp:Content>

Note: the css the nested page refers to is inside of another directory. However, the nested master page is in the top level directory.

Thanks,
S~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top