|
|
|
|
|
| | |
| |
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: |
Problems with Dyamic Includes |
|
From: |
Daniel Engelman |
|
Date: |
7/8/2003 2:51:54 PM |
|
IP: |
213.8.95.7 |
hi all!
i'm using a function like this:
Function IncludeFile(strFileName)
Dim objFileSys
Dim objTextString
Set objFileSys = Server.CreateObject("Scripting.FileSystemObject")
Set objTextString = objFileSys.OpenTextFile(Server.MapPath(strFileName))
IncludeFile = objTextString.ReadAll
objTextString.Close
Set objTextString = Nothing
Set objFileSys = Nothing
End Function
and i call it like this:
<%
response.write IncludeFile(FileName)
%>
the problem is that the called file cannot read session values...
for example: if it reads:
"response.write IncludeFile("Profiles/Admins/000.asp")"
the 000.asp cannot read the session variables...
does anyone have a clue?
thanks in advance!
Daniel Engelman.
|
Follow Up - Re: Problems with Dyamic Includes - Si 7/17/2003 3:00:12 PM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|