Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Where to put my css file in my content page.

Reply
Thread Tools

Where to put my css file in my content page.

 
 
tshad
Guest
Posts: n/a
 
      10-27-2009
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


 
Reply With Quote
 
 
 
 
Segundo Serrano
Guest
Posts: n/a
 
      10-27-2009
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" <(E-Mail Removed)> escribió en el mensaje de noticias news:u$itZ%(E-Mail Removed)...
> 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?
>
> <%@ 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
>
>

 
Reply With Quote
 
 
 
 
tshad
Guest
Posts: n/a
 
      10-28-2009
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:(E-Mail Removed)...
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" <(E-Mail Removed)> escribió en el mensaje de noticias news:u$itZ%(E-Mail Removed)...
> 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?
>
> <%@ 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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: Only Content controls are allowed directly in a content page that contains Content controls. hazz ASP .Net 6 06-09-2010 01:54 PM
why does the following with Queue, q.put('\x02', True) not put itin the queue? Gabriel Rossetti Python 3 04-25-2008 03:41 PM
newbie: can this be put into a css file? Jeff ASP .Net 1 10-02-2006 11:44 AM
WYSIWYG content management system; how to put together and make it work anoniem Java 3 09-14-2004 12:58 PM
can I put CSS code in a file? chirs Javascript 1 10-24-2003 01:41 AM



Advertisments