serving pages in ASP ala PHP

Ask a Question related to ASP, Design and Development.

  1. #1

    Default serving pages in ASP ala PHP

    Hi there

    i am creating a clan website in ASP and am making a page serving
    script

    a link sends a query to the default page and then serves the page by
    grabbing the HTML from a database that refers to the pageID.

    this works like a peach whenever the page is just HTML
    e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=2[/url]

    but when i try and add ASP code to it (for a news page etc), it just
    prints the ASP and does not execute it
    e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=1[/url]

    Any ideas on how to do this would be much appreciated. is there a way
    of doing it this way? or is there a work-around without a huge
    default.asp file size?

    many thanks
    a55m0nk
    (jack bastow)
    -[ CaMeL ]- a55m0nk Guest

  2. Similar Questions and Discussions

    1. BYTE-SERVING
      I would like to know how to enable Byte-Serving on IIS. We have some PDF files on our intranet which cannot be opened with Adobe reader 6. But...
    2. Serving PDF Problem
      I'm still having a problem with the following code, but I can better describe the symptoms now. Code: <?php $uri = getenv('REQUEST_URI');...
    3. gettting an apache perl module to take over serving pages
      I have this huge directory of html and images, lets callit '/pages'. I want a Perl module to take over serving the HTML from this directory, so I...
    4. [PHP] help with ad serving
      * Thus wrote electroteque (daniel@electroteque.org): I have no clue what you just said. Curt -- "I used to think I was indecisive, but now...
    5. web page serving
      Is it possible to use my pc as a server. I have Windows XP Professional with iis6 installed with .net.
  3. #2

    Default Re: serving pages in ASP ala PHP

    You can Server.Execute the pages.

    Ray at home

    "-[ CaMeL ]- a55m0nk" <jackmancantbreathe@hotmail.com> wrote in message
    news:dc157fbd.0310250848.330a4715@posting.google.c om...
    > Hi there
    >
    > i am creating a clan website in ASP and am making a page serving
    > script
    >
    > a link sends a query to the default page and then serves the page by
    > grabbing the HTML from a database that refers to the pageID.
    >
    > this works like a peach whenever the page is just HTML
    > e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=2[/url]
    >
    > but when i try and add ASP code to it (for a news page etc), it just
    > prints the ASP and does not execute it
    > e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=1[/url]
    >
    > Any ideas on how to do this would be much appreciated. is there a way
    > of doing it this way? or is there a work-around without a huge
    > default.asp file size?
    >
    > many thanks
    > a55m0nk
    > (jack bastow)

    Ray at Guest

  4. #3

    Default Re: serving pages in ASP ala PHP

    "Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message news:<#nGUHtymDHA.1740@TK2MSFTNGP12.phx.gbl>...
    > You can Server.Execute the pages.
    >
    > Ray at home
    >
    > "-[ CaMeL ]- a55m0nk" <jackmancantbreathe@hotmail.com> wrote in message
    > news:dc157fbd.0310250848.330a4715@posting.google.c om...
    > > Hi there
    > >
    > > i am creating a clan website in ASP and am making a page serving
    > > script
    > >
    > > a link sends a query to the default page and then serves the page by
    > > grabbing the HTML from a database that refers to the pageID.
    > >
    > > this works like a peach whenever the page is just HTML
    > > e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=2[/url]
    > >
    > > but when i try and add ASP code to it (for a news page etc), it just
    > > prints the ASP and does not execute it
    > > e.g. [url]http://www.deathworld.net/camel2.0/default.asp?id=1[/url]
    > >
    > > Any ideas on how to do this would be much appreciated. is there a way
    > > of doing it this way? or is there a work-around without a huge
    > > default.asp file size?
    > >
    > > many thanks
    > > a55m0nk
    > > (jack bastow)
    how would i go about doing that? here is my code:

    '----------Page Serving Code-----------'
    dim strPageSQL, strPageConn, strBody

    strPage = request.querystring("id")
    if strPage = "" then
    strPage = "1"
    end if

    strPageSQL = "SELECT pageBody FROM tblPage WHERE pageID = " & strPage
    & ""
    Set strPageConn = Server.CreateObject("ADODB.Recordset")
    strPageConn.Open strPageSQL, "CaMeL", 3, 3

    strBody = strPageConn("pageBody")

    strPageConn.close
    set strPageConn = nothing
    set strPageSQL = nothing
    '--------------------------------------

    then i do <%=strBody%> in the section it is required. How could i do a
    server.execute for this script?

    thanks
    a55m0nk
    (jack bastow)
    -[ CaMeL ]- a55m0nk 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