Problem opening asp file as FSO

Results 1 to 3 of 3

Thread: Problem opening asp file as FSO

  1. #1
    Marina Soutorikhina Guest

    Default Problem opening asp file as FSO

    My code is:<BR>&#060;%<BR>Const ForReading = 1<BR>Dim strReferrer, objFSO, objOpenFile, strLine<BR><BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR>Set objOpenFile = objFSO.OpenTextFile(Server.MapPath("B-Details1.asp"),ForReading)<BR>Do Until objOpenFile.AtEndOfStream<BR> strLine = objOpenFile.ReadLine<BR> Response.Write strLine & vbCrLf<BR>Loop<BR><BR>objOpenFile.Close<BR>Set objOpenFile = Nothing<BR>Set objFSO = Nothing<BR><BR>%&#062;<BR>It opens file as asp only without data. What can I do?

  2. #2
    Join Date
    Dec 1969

    Default I don't understand

    Do you mean that the ASP code is being displayed in the browser?<BR><BR>If so, then yes, what did you expect?<BR><BR>I AM having a slow day, so I may have missed the point.

  3. #3
    Marina Soutorikhina Guest

    Default RE: I don't understand

    I need to create a print page of the form which contains only the data from the database. Now when I open print page it shows all formatting etc. but no data. What can I do?<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts