|
|
|
|
|
| | |
|
vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Problems with Dyamic Includes |
From: |
Mike |
Date: |
10/1/2003 10:03:15 PM |
IP: |
195.92.168.164 |
Dan
This is so easy it's easy to overlook. This is how I did it.
1. Set session variables in whatever page you need
2. In page that uses the session variable use
<!--#include file="include.txt" -->
It works fine but just in case -
File 1 - CallInclude.asp
<html>
<head>
</head>
<body>
<%
Session("User") = "Mike"
%>
<A href="Include.asp">Test</A>
</body>
</html>
Which calls File 2 - Include.asp
<html>
<head>
</head>
<body>
<!--#include file="include.txt" -->
</body>
</html>
Which uses File 3 - Include.txt
<%
Response.Write("Hello " & Session("User"))
%>
Hope that helps
Mike :-)
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|