Use a "content-disposition" tag, eg

Response.AddHeader "content-disposition", "filename=MyZipFile.zip"

,however, note KB Q279667 (it doesn't work in IE5.5SP1)

Merak

> -----Original Message-----
> From: Chris Sells [mailto:[EMAIL PROTECTED]]
> Sent: 30 April 2002 09:27
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Specifying the client-side file name when
> doing Response.WriteFile
>
>
> I'm redirecting all .zip files on my site to a form to
> collect the email addresses of down loaders. Then, once
> they've filled out the form, I want to let them get the file,
> so I'm using Response.WriteFile. The problem is that the file
> name on the client-side defaults to the name of the aspx file
> doing the work, not the name of the file I just sent
> (although the correct contents are coming across the wire).
> What's the trick for getting the client-side filename to be right?
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to