Including Static Content

Ask a Question related to ASP, Design and Development.

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

    Thanks, j


    jordan Guest

  2. Similar Questions and Discussions

    1. #39713 [NEW]: Static variables defined in static methods duplicated in derived classes
      From: paul at digitalbacon dot us Operating system: Linux, Mac OS X 10.4, Windows XP PHP version: 5.2.0 PHP Bug Type: ...
    2. #39048 [NEW]: Static variables and instantiated classes. private static doesn't work.
      From: matti at nitro dot fi Operating system: * PHP version: 5.1.6 PHP Bug Type: Scripting Engine problem Bug description: ...
    3. #38783 [NEW]: Call to non-static as static E_STRICT thrown when error reporting set to E_ALL
      From: dmb27 at cornell dot edu Operating system: Redhat AS 4 PHP version: 5.1.6 PHP Bug Type: Class/Object related Bug...
    4. combining static & dynamic content
      Since the Description is not in the database table, an overall loop over the interest group(IG) records will not work too well, but it would be good...
    5. forms authentication: redirects for *.aspx pages only, not for other extensions, not for static content
      Hi! I am using something like this in web.config : <authentication mode="Forms"> <forms name=".MSMOBILES_COM___COOKIE" loginUrl="login.aspx"...
  3. #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" <jfritts@learn.colostate.edu> wrote in message
    news:%23OfwsEmkDHA.2528@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
    >
    >

    Ray at Guest

  4. #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 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:OBS2GHmkDHA.2488@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" <jfritts@learn.colostate.edu> wrote in message
    > news:%23OfwsEmkDHA.2528@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
    > >
    > >
    >
    >

    jordan Guest

Posting Permissions

  • You may not post new threads
  • You may 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