Try writing a custom HttpHandler. The parameters will usually be passed via
query strings. The custom handler then generates the appropriate ContentType
for the output, and generates the output data (eg. by reading the
appropriate file).
I am using this technique not for a file download but for a similar
purpose - a report generator page that contructs a report based on
parameters supplied to it, then supplies the report back as either HTML
output or PDF output.
You can also "get away with" using a standard ASP.NET form and using
Response.Write/Response.WriteFile and Response.End, but it is not a clean
solution.
"Jeff Jarrell" <jj************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I want to setup a downloads page on my site. Most of the time they are zip
files but they are also MSI files. Things work ok if I simply put an <a>
element referencing the file to download but I'd like a little more smarts
to it. I'd like to know how many times the file was downloaded along with
the referrer information. I'd also like to hide the actual physical file
location.
So I send it to another URL to record the download but then how do I
initiate the download (from a push point of view).
thanks.