N
news.sbcglobal.net
I hope I can explain this well enough to understand. I have a master page
that is used by almost all of the pages in my site. On the master page is a
table. In one of the cells in this table, I have set the background to
display an image that is located in a directory called "images" which is
just off the root directory. Here's the problem:
Any page that is not located in the root directory (where the master page is
located) cannot see the background image. Pages that ARE located in the
root directory can. I have tried using "~/images/filename.jpg" for the
background source but this didn't work. In fact, the only that has worked
so far is to put the full URL ("http://www.mysite.com/images/filename.jpg")
for the background source. I'm still relatively new to ASP.NET 2.0 and I
don't know what (if any) problems using the full URL might cause.
Can anyone suggest a solution (or is using the full URL for this the correct
way to go).
Thanks!
that is used by almost all of the pages in my site. On the master page is a
table. In one of the cells in this table, I have set the background to
display an image that is located in a directory called "images" which is
just off the root directory. Here's the problem:
Any page that is not located in the root directory (where the master page is
located) cannot see the background image. Pages that ARE located in the
root directory can. I have tried using "~/images/filename.jpg" for the
background source but this didn't work. In fact, the only that has worked
so far is to put the full URL ("http://www.mysite.com/images/filename.jpg")
for the background source. I'm still relatively new to ASP.NET 2.0 and I
don't know what (if any) problems using the full URL might cause.
Can anyone suggest a solution (or is using the full URL for this the correct
way to go).
Thanks!