Alpha Documentation

Response.SendFile() - Response.SendFile() is a new method to send a file to the client from anywhere on the filesystem that is accessible by the user account used to run the server, including outside the server's document root. This was previously possible using several lines of Xbasic to send the file, set the proper MIME type, etc. which is now greatly simplified.

To send the file c:\invoice.docx to the client:


To send the file c:\invoices\customer0023.docx to the client and have the client receive it as invoice.docx:

  • Response.SendFile("c:\invoices\customer0023.docx","invoice.docx")