2.0 has new some classes. Play with this one I had commented out in a
MasterPage.cs file...
//Add StyleSheet
HtmlLink style1 = new HtmlLink();
((HtmlHead)Page.Header).Controls.Add(style1);
style1.Href = "~/StyleSheets/TestInheritence.css";
style1.Attributes.Add("rel", "Stylesheet");
style1.Attributes.Add("type", "text/css");
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL
http://metromilwaukee.com/
URL
http://clintongallagher.metromilwaukee.com/
"Arjen" <bo*****@hotmail.com> wrote in message
news:dk**********@news1.zwoll1.ov.home.nl...
Hi,
My mastepage can use two css files.
Now page 1 needs to use the masterpage with css file 1 and page 2 needs to
use the masterpage with css file 2.
How can the page say that it wants to use css file 1 or 2?
I don't want to add the css file inside the pages.
I hope that this is posible with a simple setting in this line:
<%@ Page Language="C#" MasterPageFile="" Title="" %>
And with some code lines inside the masterpage.
Thanks!