Ask a Question related to ASP, Design and Development.
-
-[ CaMeL ]- a55m0nk #1
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
-
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... -
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');... -
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... -
[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... -
web page serving
Is it possible to use my pc as a server. I have Windows XP Professional with iis6 installed with .net. -
Ray at #2
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
-
-[ CaMeL ]- a55m0nk #3
Re: serving pages in ASP ala PHP
"Ray at <%=sLocation%>" <myfirstname at lane 34 . komm> wrote in message news:<#nGUHtymDHA.1740@TK2MSFTNGP12.phx.gbl>...
how would i go about doing that? here is my code:> 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)
'----------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



Reply With Quote

