ContentPage and CSS

L

Lav

Hi,

How can I use style sheets on a ContentPage?
As a it allows neither <style> nor <link>.

Thanks in advance.
 
M

Mark Rae

How can I use style sheets on a ContentPage?
As a it allows neither <style> nor <link>.

The code behind the ContentPage has full access to its MasterPage's header
section...

Do a Google for stuff like:

this.Master.Style
this.Master.StyleSheet

etc
 
A

Alan Silver

Lav said:
Hi,

How can I use style sheets on a ContentPage?
As a it allows neither <style> nor <link>.

It does if you add a contentplaceholder inside the <head> of the master
page, and then use the corresponding content control in the .aspx file
to add the <link> or <style> tag as appropriate.

However, a much better way is to use themes, and the stylesheet links
are added for you.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,296
Latest member
HeikeHolli

Latest Threads

Top