473,320 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Header.LinkedStylesheets missing from .NET v2 Beta 2

When using a master page In .NET v2.0 Beta 1, you could attach additional
stylesheets to the master page from your content pages, with a call such as:

Header.LinkedStyleSheets.Add("_Styles/Stylesheet.css");

In Beta 2, it seems as though IPageHeader no longer exposes this property.

Does anyone know what the new approach / work-around is?

Thank in advance.
Nov 19 '05 #1
1 1144
OK, I've found a work-around, but it's pretty shady (in comparison):

System.Web.UI.HtmlControls.HtmlLink stylesheet =
new System.Web.UI.HtmlControls.HtmlLink();
stylesheet.Href = "_Styles/Stylesheet.css";
stylesheet.Attributes["rel"] = "stylesheet";
stylesheet.Attributes["type"] = "text/css";
head.Controls.Add(stylesheet);

/gerrod

"gerrod" wrote:
When using a master page In .NET v2.0 Beta 1, you could attach additional
stylesheets to the master page from your content pages, with a call such as:

Header.LinkedStyleSheets.Add("_Styles/Stylesheet.css");

In Beta 2, it seems as though IPageHeader no longer exposes this property.

Does anyone know what the new approach / work-around is?

Thank in advance.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
9
by: Psych971 | last post by:
Hi, I'm wondering where I'm supposed to get the ADO.NET component? The documentation says to reference System.Data.ADO but it seems to be missing from my system as I've checked the System.Data...
3
by: Shan McArthur | last post by:
Hello, I have installed .Net 2.0 Beta 2 on my machine yet I cannot see any ASP.NET tab in the IIS Manager. As a result, I am unable to pick with version of the framework will be used for...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
6
by: Rivotti | last post by:
I searched and searched and NADA ! please help. I need to have 3 rows that include a: header fixed on the top middle that occupies 100% of available space and a fotter that is fixed to the...
1
by: jacek.dziedzic | last post by:
Hi! I have a program that #includes a header file of an external library. If the environment is set-up correctly, this file is found in the include path and everything works. Now, assume...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.