Where to put my css file in my content page.

  • Thread starter Thread starter tshad
  • Start date Start date
T

tshad

In my content page, I have to add my css file.

I would normally put it in the Head section, but I don't have one in my
content section and don't want to put it in the master page.

<link href="App_Themes/GridView/AutoUPS.css" rel="stylesheet"
type="text/css" />

Where would I put it?

<%@ Page Title="" Language="C#" MasterPageFile="~/Auto.Master"
AutoEventWireup="true" CodeBehind="Auto.aspx.cs"
Inherits="WebApplication1.Auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server">
</asp:Content>

Thanks,

Tom
 
Hi,
try this:

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="App_Themes/GridView/AutoUPS.css" rel="stylesheet" type="text/css" />
</asp:Content>

Regards,

S.
 
I did do that, but it do get a green squiggly that says Element Link cannot be nested inside eleement div.

There are Divs around the ContentPlaceHolder area in the master page.

But it does work though.

Thanks,

Tom
"Segundo Serrano" <sserrano[at]jabs[dot]com[dot]pe> wrote in message Hi,
try this:

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="App_Themes/GridView/AutoUPS.css" rel="stylesheet" type="text/css" />
</asp:Content>

Regards,

S.
 
Back
Top