Professional Web Applications Themes

Including Static Content - ASP

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 p ...

  1. #1

    Default 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 p the file via the
    FileSystemObject, but I'm hoping not to do that)?

    Thanks, j


    jordan Guest

  2. #2

    Default Re: Including Static Content

    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" <jfrittslearn.colostate.edu> wrote in message
    news:%23OfwsEmkDHA.2528TK2MSFTNGP12.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 p the file via the
    > FileSystemObject, but I'm hoping not to do that)?
    >
    > Thanks, j
    >
    >

    Ray at Guest

  3. #3

    Default Re: Including Static Content

    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 te 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:OBS2GHmkDHA.2488TK2MSFTNGP12.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" <jfrittslearn.colostate.edu> wrote in message
    > news:%23OfwsEmkDHA.2528TK2MSFTNGP12.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 p the file via the
    > > FileSystemObject, but I'm hoping not to do that)?
    > >
    > > Thanks, j
    > >
    > >
    >
    >

    jordan Guest

Similar Threads

  1. Replies: 2
    Last Post: December 3rd, 12:47 AM
  2. Replies: 3
    Last Post: October 5th, 03:04 PM
  3. Replies: 1
    Last Post: September 11th, 09:21 PM
  4. combining static & dynamic content
    By Duane McGuire in forum Coldfusion - Getting Started
    Replies: 6
    Last Post: February 22nd, 02:26 AM
  5. Replies: 2
    Last Post: July 20th, 12:26 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139