473,320 Members | 2,112 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.

Does ASP.NET treat <header> differently than the rest of the html?

Hi,

Recently I moved a website to a different machine for testing, and I
needed to replace the absolute site urls in my stylesheet links.
Instead of something like href="/blah/style.css" they were to say
something like href="<%# Settings.SiteRoot %>style.css". And the
relevant code:

public class Settings
{
public static string SiteRoot()
{
return Configuration.AppSettings["SiteRoot"];
}
}

This works on some pages, but not on others. Sometimes the <link> tag
contains the correct path ("/blah/style.css"), and other times (on the
same master page!) the href contains "style.css". No exceptions, no
compilation problems. Just on some pages the settings aren't read.

Now the interesting part is that all the images on the site use the
same mechanism to get the path, and they always work, on every page.
Whatever the cause for this bizarre behaviour, it is 1) consistent, and
2) affects only headers.

Any comments on this?

-Aleko

Nov 19 '05 #1
0 872

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

Similar topics

17
by: Matt Kruse | last post by:
I'm looking for the best JS/CSS solution to add functionality to tables. The only browser which needs to be supported is IE5.5+, but no activeX can be used. to be able to do: - Fixed header row...
4
by: Roshawn Dawson | last post by:
Hi, I've been reading the <a href="http://www.google.com/webmasters/guidelines.html">Google WebMaster Guidelines. Google urges web developers to make use of the If-Modified-Since http header...
2
by: John Smith | last post by:
Hi all; Putting "Due" into the column header of a datagrid. Font is a proportional fort. When the alignment is left, there is some space between the column separator bar and the D in Due....
6
by: tentstitcher | last post by:
Hi all: I have a source xml document with an element of type string. This element contains something like the following: <stringData> &lt;Header&gt; &lt;Body&gt; </stringData> I would like to apply an...
3
by: mirandacascade | last post by:
1) Is it correct that none of the examples in the ElementSOAP tutorial: http://effbot.org/zone/elementsoap-1.htm include an example in which the SOAP message that contains the request includes...
3
by: Bob Delaney | last post by:
I have been wading through tutorials and PDF files on MSDN and various other .Net and ASP.Net sites trying to see if one can have an <asp:ContentPlaceHolderblock within the <headerregion on a...
0
by: Bob Delaney | last post by:
Many thanks to the three people who responded to yesterday's post with some helpful suggestions. They asked what I am trying to do. Here is a synopsis: I have a web site (www.mississaugawest.com...
1
by: mobs6 | last post by:
This error messages always shown up, after i filled the registration form Can some body tell me about this problems, ok this is error the message looks like: " sendmail: Can't send mail: Sender...
5
by: keeps21 | last post by:
A little problem I've run into is the following. I have a script that allows a user to edit a story. I have an HTML form for title and main_text which gets it's values by pulling the selected...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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

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.