[Message Deleted]
-
Instead of directly making the file available for download, create a page (it could be aspx or ashx) which accepts paramters to identify the file. You can then log the download and then use Response.TransmitFile() to transfer the file to the user. You'll probably also need to specify the response headers to describe the correct file type (MIME type) to the browser.
Mark's blog: developMENTALmadness.blogspot.com
-
Instead of directly making the file available for download, create a page (it could be aspx or ashx) which accepts paramters to identify the file. You can then log the download and then use Response.TransmitFile() to transfer the file to the user. You'll probably also need to specify the response headers to describe the correct file type (MIME type) to the browser.
Mark's blog: developMENTALmadness.blogspot.com
-
Use the "content-disposition" header to set the filename of the response. C#:
Response.AddHeader("content-disposition", "filename=file.mp3");
Mark's blog: developMENTALmadness.blogspot.com