470,849 Members | 659 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

Including Static Content

I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic
page just to give the content an upgrade in presentation, including images.

The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static page
prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?

Thanks, j
Jul 19 '05 #1
2 1861
Can't you just use paths that are relative from the root of your site?

<img src="/images/file.gif">

It won't matter if you put that in a page in the root of the site or in a
page that is nine directories deep then.

Ray at work

"jordan" <jf*****@learn.colostate.edu> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic
page just to give the content an upgrade in presentation, including images.
The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static page prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?

Thanks, j

Jul 19 '05 #2
Yes, *I* can, but the persons who will be responsible for the content won't
be. They will be editing the files locally in pushing them up to me. They
can be told to replicate the directory structure too, which I will ask that
they do, but I'm also looking for alternatives.

j

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:OB**************@TK2MSFTNGP12.phx.gbl...
Can't you just use paths that are relative from the root of your site?

<img src="/images/file.gif">

It won't matter if you put that in a page in the root of the site or in a
page that is nine directories deep then.

Ray at work

"jordan" <jf*****@learn.colostate.edu> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic page just to give the content an upgrade in presentation, including

images.

The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static

page
prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?

Thanks, j


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Bert Jansen | last post: by
1 post views Thread by Martin Mücke | last post: by
4 posts views Thread by Philipp Kraus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.