Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Help with CSS and the use of a Masterpage

I'm trying to figure out what I did wrong here.  Maybe someone can help.  I have two stylesheet that are specific to an aspx page.  This page uses a Masterpage.  

I placed links to the two stylesheets in the "head" section of my page but the stylesheet doesn't load.  I tried adding and removing Runat="Server" but nothing changes.  I even tried removing the tidle (~) that represents the root, but that doesn't help either.

Can someone please tell me what I'm doing wrong?
<%@ Page Title="" Language="VB" MasterPageFile="~/masterpages/general.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default" %>

<%@ Register src="~/controls/Menu.ascx" tagname="Menu" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link id="Link1" href="~/css/SubMenu.css" rel="stylesheet" type="text/css" Runat="Server" />
    <link id="Link2" href="~/css/Pack.css" rel="stylesheet" type="text/css" Runat="Server" />
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <uc1:pickPackMenu ID="pickPackMenu1" runat="server" />   

etc... etc...

Open in new window

1 Solution
Did you try using the FQDN in relation so the CSS files?
cdemott33Author Commented:
I'm not sure I understand?  Could you please explain further or provide an example?

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now