Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Choosing Include Files Dynamically

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,282
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Choosing Include Files Dynamically
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Choosing Include Files Dynamically - 7/18/2001 7:30:15 PM   
  imav8n

 

Posts: 95
Score: 0
Joined: 7/3/2001
From: USA
Status: offline
I have a database that contains the location of several HTML pages on my webserver. The link I'm submitting to the .asp page carries the unique ID of each page, so now I'm trying to get the .asp page to retrieve the name of the HTML document from the database, and then use that name to create an include statement that will put the HTML document into the middle of my .asp page.

Anybody know how this could be done? I've tried:
<!--#include file="<%= strTitle %>"--> and
<%<!--#include file="strTitle"-->%>
and
<!--#include file="<%Response.Write(strTitle)%>"-->

Where strTitle is the name of the document retrieved from the database. None of these seem to work.

~imav8n
 
 
Post #: 1
 
 Re: Choosing Include Files Dynamically - 7/20/2001 1:12:59 AM   
  daydreamer

 

Posts: 19
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
You can try this piece of code to accomplish the task

<!--#include file='<%=request.QueryString("UniquePageId") %>'-->

________

George

(in reply to imav8n)
 
 
Post #: 2
 
 Re: Choosing Include Files Dynamically - 7/20/2001 9:36:20 AM   
  adminkoe

 

Posts: 117
Score: 0
Joined: 12/23/2000
From:
Status: offline
Imaven,

Quote
============================================
<!--#include file='<%=request.QueryString("UniquePageId") %>'-->
=============================================

If it doesn't work , just replace request.QueryString with request.form


Regards,
Andi Zain

(in reply to imav8n)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Choosing Include Files Dynamically Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts