"Ray at <%=sLocation% >" <myfirstname at lane 34 . komm> wrote in message news:<#n******* *******@TK2MSFT NGP12.phx.gbl>. ..
You can Server.Execute the pages.
Ray at home
"-[ CaMeL ]- a55m0nk" <ja************ ****@hotmail.co m> wrote in message
news:dc******** *************** ***@posting.goo gle.com... 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. http://www.deathworld.net/camel2.0/default.asp?id=2
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. http://www.deathworld.net/camel2.0/default.asp?id=1
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.queryst ring("id")
if strPage = "" then
strPage = "1"
end if
strPageSQL = "SELECT pageBody FROM tblPage WHERE pageID = " & strPage
& ""
Set strPageConn = Server.CreateOb ject("ADODB.Rec ordset")
strPageConn.Ope n strPageSQL, "CaMeL", 3, 3
strBody = strPageConn("pa geBody")
strPageConn.clo se
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)