Welcome, Guest. Please login or register.

Author Topic: include files in ASP  (Read 1026 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline whabangTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 7270
include files in ASP
« 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...
Beating the dead horse since 2002.
 

Offline whabangTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 7270
Re: include files in ASP
« Reply #1 on: April 20, 2004, 12:06:47 PM »
Solved!
I used the Server.Execute command instead.
Quote

Server.Execute(Request.QueryString & ".asp")
Beating the dead horse since 2002.