Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send a text file to client...
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00905251
Message ID:
00905277
Views:
17
This message has been marked as the solution to the initial question of the thread.
I think it is a syntax issue. Below is a pretty straight foward function that may help.
    '* This routine is used to write the information to the browser
    Private Sub WriteToBrowser(ByVal sFPath$, ByVal sFName$)

        ' Push File
        Response.ClearContent()
        Response.ClearHeaders()
        Response.AppendHeader("Content-Disposition", "inline;filename = " & sFName)
        Response.ContentType = "txt/txt"
        Response.WriteFile(sFPath)
        Response.Flush()
        Response.Close()

        ' Clean Up (Uncomment below if you wish to remove the file from the server after sending)
        ' System.IO.File.Delete(sFPath)

    End Sub
Thanks,
Danny
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform