| .NET DotNet Forum Index » ASP.NET Forum » Where to put my css file in my content page.... |
|
Page 1 of 1 |
|
| Author |
Message |
| tshad... |
Posted: Tue Oct 27, 2009 3:51 pm |
|
|
|
Guest
|
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?
<% at (no spam) 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 |
|
|
| Back to top |
|
|
|
| Segundo Serrano... |
Posted: Tue Oct 27, 2009 3:57 pm |
|
|
|
Guest
|
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.
--------------------------------------------------------------------------------
"tshad" <toms at (no spam) pdsa.com> escribió en el mensaje de noticias news:u$itZ%230VKHA.5368 at (no spam) TK2MSFTNGP02.phx.gbl...
Quote: 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.
Where would I put it?
% at (no spam) Page Title="" Language="C#" MasterPageFile="~/Auto.Master"
AutoEventWireup="true" CodeBehind="Auto.aspx.cs"
Inherits="WebApplication1.Auto" %
asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server"
/asp:Content
Thanks,
Tom
|
|
|
| Back to top |
|
|
|
| tshad... |
Posted: Wed Oct 28, 2009 10:19 am |
|
|
|
Guest
|
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 news:OiYbwB1VKHA.508 at (no spam) TK2MSFTNGP06.phx.gbl...
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.
------------------------------------------------------------------------------
"tshad" <toms at (no spam) pdsa.com> escribió en el mensaje de noticias news:u$itZ%230VKHA.5368 at (no spam) TK2MSFTNGP02.phx.gbl...
Quote: 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.
Where would I put it?
% at (no spam) Page Title="" Language="C#" MasterPageFile="~/Auto.Master"
AutoEventWireup="true" CodeBehind="Auto.aspx.cs"
Inherits="WebApplication1.Auto" %
asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1"
runat="server"
/asp:Content
Thanks,
Tom
|
|
|
| Back to top |
|
|
|
|