M
Mirek Endys
HEEELP!!!!
I have a big problem ))))
How to use url in CSS stylesheet file that is linked into MasterPage.
The tilda '~' (as shortcut to the root of the webserver) is not working, and
my MasterPage is used by pages not only in root but in other subfolders.
I have this in My MasterPage
<div
onmouseover="this.style.backgroundImage='url(images/design/topnav01.gif)'"
/>
if I request default.aspx that is based on MasterPage (both pages are in the
root), this <div> is working well,
But in case I request another page that is located in a subfolder of my
webserver and use MasterPage in the root too, this div is not working.
I tried use the '~' character as shortcut of the root of the webserver, but
it is not working.
<div
onmouseover="this.style.backgroundImage='url(~/images/design/topnav01.gif)'"
/> // not working.
How to solve this???
Thanks.
I have a big problem ))))
How to use url in CSS stylesheet file that is linked into MasterPage.
The tilda '~' (as shortcut to the root of the webserver) is not working, and
my MasterPage is used by pages not only in root but in other subfolders.
I have this in My MasterPage
<div
onmouseover="this.style.backgroundImage='url(images/design/topnav01.gif)'"
/>
if I request default.aspx that is based on MasterPage (both pages are in the
root), this <div> is working well,
But in case I request another page that is located in a subfolder of my
webserver and use MasterPage in the root too, this div is not working.
I tried use the '~' character as shortcut of the root of the webserver, but
it is not working.
<div
onmouseover="this.style.backgroundImage='url(~/images/design/topnav01.gif)'"
/> // not working.
How to solve this???
Thanks.