I have 3 different menus on the home page. I have a master page for the home page and another master page for the Category layout. I have created a nested master page for each Category menu link item. There is a content .aspx content page which corresponds.
Navigation works fine but I am challenged as to how and where to associate my style sheet code for the menu and content grid.
Should I be using HtmlLink as I am unable to use in nested page as in site.master. Could you suggest where I should be inserting my variable code.
(HtmlLink Format)
<%@ Page Language="C#"%>
<script runat="server">
protected void Page_Init(object sender, EventArgs e)
{
// Define an HtmlLink control.
HtmlLink myHtmlLink = new HtmlLink();
myHtmlLink.Href = "~/StyleSheet.css";
myHtmlLink.Attributes.Add("rel", "stylesheet");
myHtmlLink.Attributes.Add("type", "text/css");
// Add the HtmlLink to the Head section of the page.
Page.Header.Controls.Add(myHtmlLink);
</script>
<script>
Thanks in advance for your patience.
Bold novice (HummingBird)
(site.master)
<head runat="server">
<title></title>
<link href="CSS/master.css" rel="stylesheet" type="text/css" />
<link href="CSS/CatNav/catnavmenu.css" rel="stylesheet" type="text/css" />
<link href="CSS/Category/category.css" rel="stylesheet" type="text/css" />
<link href="CSS/CorpNav/CorpNav.css" rel="stylesheet" type="text/css" />
<link href="CSS/CorpNav/Footer.css" rel="stylesheet" type="text/css" />
<style type="text/css">
???.
<div id="divCatNavMenu" align =center> <asp:HyperLink id="lnkITEMA" Text="Events" NavigateUrl="~/Link_A.aspx" Runat="server" />
<asp:HyperLink
(Link_aMenu.Master)<%@ Master Language="C#" MasterPageFile="~/Site.master" %> <asp:Content id="Content1" ContentPlaceHolderID="cphCategory" Runat="server"> <div class="catnavmenu"> <asp:ContentPlaceHolder id="ContentPlaceHolder1" Runat="server" /> </div> </asp:Content> (Link_A.aspx)<%@ Page Language="C#" MasterPageFile="~/MasterPages/Link_aMenu.master" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table> </table>
</asp:Content>