PC Review


Reply
Thread Tools Rating: Thread Rating: 2 votes, 1.00 average.

how define a css file in a asp page who inherits from a masterpag

 
 
=?Utf-8?B?U2ViaG8=?=
Guest
Posts: n/a
 
      25th Aug 2006
Hi,

i have an asp page (page1.aspx) that inherits from a masterpage
(MasterPage.master)

so i try to define a stylesheet (mystyle.css) page to Page1.aspx and i have
to put a <link> tag between <head> and </head> .

But my problem is in a page who inherits from a masterpage i have no the tag
<head> and </head> and i can't reference my styleSheet

so i don't know how i can define my css file in the asp page who inherits
from a masterpage

thanks for your help

--
Sebho
 
Reply With Quote
 
 
 
 
John Timney \(MVP\)
Guest
Posts: n/a
 
      25th Aug 2006
Theres a good thread covering it here.

http://forums.asp.net/thread/1349790.aspx

Regards

John Timney (MVP)


"Sebho" <(E-Mail Removed)> wrote in message
news:24CF0ECE-1B9C-425C-8EC1-(E-Mail Removed)...
> Hi,
>
> i have an asp page (page1.aspx) that inherits from a masterpage
> (MasterPage.master)
>
> so i try to define a stylesheet (mystyle.css) page to Page1.aspx and i
> have
> to put a <link> tag between <head> and </head> .
>
> But my problem is in a page who inherits from a masterpage i have no the
> tag
> <head> and </head> and i can't reference my styleSheet
>
> so i don't know how i can define my css file in the asp page who inherits
> from a masterpage
>
> thanks for your help
>
> --
> Sebho



 
Reply With Quote
 
=?Utf-8?B?U2ViaG8=?=
Guest
Posts: n/a
 
      25th Aug 2006
Well, Thank you
--
Sebho


"John Timney (MVP)" wrote:

> Theres a good thread covering it here.
>
> http://forums.asp.net/thread/1349790.aspx
>
> Regards
>
> John Timney (MVP)
>
>
> "Sebho" <(E-Mail Removed)> wrote in message
> news:24CF0ECE-1B9C-425C-8EC1-(E-Mail Removed)...
> > Hi,
> >
> > i have an asp page (page1.aspx) that inherits from a masterpage
> > (MasterPage.master)
> >
> > so i try to define a stylesheet (mystyle.css) page to Page1.aspx and i
> > have
> > to put a <link> tag between <head> and </head> .
> >
> > But my problem is in a page who inherits from a masterpage i have no the
> > tag
> > <head> and </head> and i can't reference my styleSheet
> >
> > so i don't know how i can define my css file in the asp page who inherits
> > from a masterpage
> >
> > thanks for your help
> >
> > --
> > Sebho

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
if I do not have it place the code in a seperate file I do not get the an Inherits Page Cal Who Microsoft ASP .NET 0 20th May 2010 01:15 AM
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). murl Microsoft ASP .NET 0 27th Mar 2007 10:30 PM
How do I use Import or Inherits on a Single Page .aspx Page Christian Blackburn Microsoft VB .NET 1 12th Jun 2006 03:11 PM
Where to put page specific script in a page that inherits from a master page? Eric Microsoft ASP .NET 0 25th Apr 2006 12:54 AM
Page directive- Inherits Microsoft ASP .NET 3 8th Mar 2005 11:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 PM.