From: "Michael Xu" <[EMAIL PROTECTED]>
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename="
+ filename);
For what it's worth, I usually Response.Flush() at this point, before sending the actual data.
Response.WriteFile(filepath); Response.End();
-- Curt Hagenlocher [EMAIL PROTECTED]
=================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in:
Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet
View archives and manage your subscription(s) at http://discuss.develop.com
