|
 |
asp_web_howto thread: R: Re: Dynamically generating include files
Message #1 by "Giovanni Salucci" <gsalucci@i...> on Tue, 26 Nov 2002 18:04:42 +0100
|
|
http://www21.brinkster.com/lorzdesign/esempio.asp
It is in italian, but it works...
Ciao!
-----Messaggio originale-----
Da: dfalconer@g... [mailto:dfalconer@g...]
Inviato: marted́ 26 novembre 2002 16.43
A: ASP Web HowTo
Oggetto: [asp_web_howto] Re: Dynamically generating include files
Cheers Phil unfortunately i am on IIS 4 so that isnt an option, any other
ideas?
> If you are running IIS5 you can use Server.Execute(filename) instead.
> hth
P> hil
>> -----------------------------------
>> I have a session variable which is a filename
>> e.g session("file") = header1.asp
> > The contents of the session variable depends on the user logged in.
>> I want to use this session variable to call to call an file to be
i> ncluded.
e> > .g.
> > <!--#INCLUDE FILE="<%=session("file")%>" -->
> > However this doesn twork and i didnt expect it to, does anyone know a
w> ay
t> > o do this or an alternative, i wan the header shown to vary depending
o> n
t> > he user?
Message #2 by dfalconer@g... on Wed, 27 Nov 2002 10:01:39
|
|
Cheers Giovanni,
however my Italian is non existent and translation tools arent always the
best for this sort of thing, could you take my example and apply it for
instance if the variable i wanted to use was say:
filename = "file1.asp"
cheers
> http://www21.brinkster.com/lorzdesign/esempio.asp
It is in italian, but it works...
Ciao!
-----Messaggio originale-----
Da: dfalconer@g... [mailto:dfalconer@g...]
Inviato: marted́ 26 novembre 2002 16.43
A: ASP Web HowTo
Oggetto: [asp_web_howto] Re: Dynamically generating include files
Cheers Phil unfortunately i am on IIS 4 so that isnt an option, any other
ideas?
> If you are running IIS5 you can use Server.Execute(filename) instead.
> hth
P> hil
>> -----------------------------------
>> I have a session variable which is a filename
>> e.g session("file") = header1.asp
> > The contents of the session variable depends on the user logged in.
>> I want to use this session variable to call to call an file to be
i> ncluded.
e> > .g.
> > <!--#INCLUDE FILE="<%=session("file")%>" -->
> > However this doesn twork and i didnt expect it to, does anyone know a
w> ay
t> > o do this or an alternative, i wan the header shown to vary depending
o> n
t> > he user?
|
|
 |