Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: whabang on April 20, 2004, 10:41:26 AM

Title: include files in ASP
Post by: whabang on April 20, 2004, 10:41:26 AM
I want to include a filename specified in the URL, I.E.

<%
filename=Request.QueryString
%>


I then want to include somehting like anyfile.html by typing in the URL /filename.asp?anyfile.html.

This is not possible because the web-server does the include before it defines the filename variable. Is there any work-around for this?

Thanks in advance...
Title: Re: include files in ASP
Post by: whabang on April 20, 2004, 12:06:47 PM
Solved!
I used the Server.Execute command instead.
Quote

Server.Execute(Request.QueryString & ".asp")