Auguri a tutti!![]()
una domanda veloce..
ho trovato questo codice :
<%
SUB include(inc_file)
Dim filesystem, textfile, filepath
filepath = Server.mappath(inc_file)
Set filesystem = Server.CreateObject("Scripting.FileSystemObject")
IF filesystem.FileExists(filepath) THEN
Set textfile = filesystem.OpenTextFile(filepath, 1)
Response.write textfile.ReadAll
ELSE
Response.write "File " & inc_file & " not found."
END IF
END SUB
%>
con il quale riesco a includere dinamicamente un file.
però..
se il file è asp, naturalmente non esegue il codice ma lo stampa a video!
insomma, come si fa per includere un file asp dinamicamente ??
grazie!!![]()

Rispondi quotando