virtual include question

Results 1 to 2 of 2

Thread: virtual include question

  1. #1
    Join Date
    Dec 1969

    Default virtual include question

    I have a page called news.asp which has some code to import other pages. It also will take in a parameter via the Query String or URL,<BR><BR>Before I explain, I am thinking that I may not be able to do this. <BR><BR>&#060;% <BR> title2 = Request("Title")<BR><BR>THIS IS THE PART I KNOW IS NOT WORKING. IS IT BECAUSE WE CAN NOT HAVE VARIABLES WITHIN OUR INCLUDE PAGE? <BR>includevirtual = "&#060;!--#include virtual=/news/" & includepage & "--&#062;"<BR>Response.Write (includevirtual)<BR>%&#062;<BR><BR><BR>I want to be able to include a page based upon a passed paramter but it doesn&#039;t look like it will work.<BR><BR>any help is greatly appreciated.<BR><BR>Justin<BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: virtual include question

    Can not do dynamic includes, see the faqs on this. However could do Server.Execute to pass control to another page to process some function then control reverts back to the calling page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts