codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Response.Write Problems  Kharn at 22:52 on Tuesday, June 22, 2004
 

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.


  Re: Response.Write Problems  Troy Wolf at 18:13 on Wednesday, July 07, 2004
 

Try this:

while not TextStream.AtEndOfStream
Response.Write(TextStream.ReadLine & vbcrlf)
wend
Troy Wolf: site expert
SnippetEdit Website Editor









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007