Dynamic Includes?

Results 1 to 2 of 2

Thread: Dynamic Includes?

  1. #1
    Tom Price Guest

    Default Dynamic Includes?

    Hi -<BR><BR>I need to include an ASP file within another ASP file, but need to generate the filename for the included file from a database... so can&#039t use conventional &#060;!-- include --&#062; as it gets run before the ASP interpreter.<BR><BR>The only way I could see to do it was to use the Internet Transfer Control to request the page to include from the webserver - which returns the (parsed) source code which can then be dropped into the original page. But this seems clunky, and the webserver needs to have the ITC installed - does anyone know of another way?<BR><BR>Cheers<BR><BR><BR>Tom

  2. #2
    keithadler@hotmail.com Guest

    Default RE: Dynamic Includes?

    Try:<BR><BR>&#060;% If Condition=True Then %&#062;<BR><BR>&#060;!-- include --&#062;<BR><BR>&#060;% Else %&#062;<BR><BR>&#060;!-- include --&#062;<BR><BR>&#060;% End If %&#062;<BR><BR>It will work just fine.

Posting Permissions

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