|
I am trying use Response.Write to import a htm page into my ASP page. I use this code.
sub redirect
const Filename = "/forum/CmyPage.htm"
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
Dim FSO
FSO = server.createObject("Scripting.FileSystemObject")
Dim TextStream
TextStream = FSO.OpenTextFile(Filename, ForReading, False, TristateUseDefault)
dim Contents
Contents = TextStream.ReadAll
Response.Write(contents)
FSO = nothing
end sub
All of the images and buttons show up on screen, but none of the events fire. Also, when i look at the source, through windows explorer i dont see any of the images or buttons.
|
|
|
Try this:
while not TextStream.AtEndOfStream
Response.Write(TextStream.ReadLine & vbcrlf)
wend
|
|
|
|
|
|
|
|
|
|
|
// |