calling style sheets

Giganews Newsgroups
Subject: calling style sheets
Posted by:  jrl (jrl@newsgroup.nospam)
Date: Fri, 07 Mar 2008

At first I learned to call a style sheet by the command
EnableTheming, as in
<%@ Master EnableTheming="true" Language="C#" AutoEventWireup="true"
CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
Using this form to call the style sheet in the App_Themes folder worked
fine.

But then I needed to break my stylesheet into smaller chunks, so it was
recommended that I use the following form within the head section.
    <link rel="Stylesheet" type="text/css" media="screen"
href="~/App_Themes/screen.css"

Now I notice the references to styles, are generating an interpreter warning
"The class or CssClass value is not defined" when I view the source code,
even though it does load the linked stylesheet and implements the styles
when it generates the webpage.

Is this normal? (that it would warn this error) or am I missing something in
order to use this function?

Replies