does the image have a runat="server" in it? If not ~ is meaningless. ~
only works for server controls.
As an alternative, I'd recommend you use a stylesheet, in which case the
image path will always be reletive to the css
master.master
page1.aspx
page2.aspx
directory\page3.aspx
styles\styles.css
images\blah.gif
if in your master.master you have
<table class="x">...
and in your stylesheet, which is included in your master page, you have
table.x
{
background: url("../images/blah.gif");
}
everything should work fine because it's relative to the location of the
css.
Also, why are you using bmp? :)
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Visual Systems AB (Martin Arvidsson)" <ma**************@vsab.net> wrote in
message news:u8**************@tk2msftngp13.phx.gbl...
Hi!
I have created a masterpage, now i have a tree where pages resides because
all visitors should not be able to peek on the private pages.
The masterpage contains
A table, the table contains a background-image.
As long as the pages is where the masterpage is, the images is displayed.
When i create a new page in another folder, the images are not displayed.
I have tried to set the url to ~/images/header.bmp, but it don't work, now
no images are displayed not when files are in the root.
What could be wrong?
Hope you understod what i want to do. My english is a bit poor, i am
swedish :D
Regards
Martin