Pass variables to #include?

Results 1 to 2 of 2

Thread: Pass variables to #include?

  1. #1
    Join Date
    Dec 1969

    Default Pass variables to #include?

    Hi there,<BR><BR>I have footers in my asp pages using the <BR>#include virtual="/"<BR>syntax. <BR><BR>However, I need to pass in variables. How is this done? <BR>I&#039;ve tried:<BR>#include virtual="/"<BR>thinking it was like using a query string, but that method does not work.<BR><BR>I KNOW I cannot put dynamic asp code in there, but I know from Unix there&#039;s a way to pass in variables to include files. Can anyone please help?<BR><BR>Thanks!<BR>

  2. #2
    DaveMW Guest

    Default RE: Pass variables to #include?

    You can&#039;t pass variables to Include files as they are interpreted before the rest of the ASP page. I think that with ASP 3.0 you can do something with Server.Execute that will mimic what I think you want to do... Hope that helps.

Posting Permissions

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