星期二, 三月 02, 2004

如何下载一个文件而不是打开它?

260519 - HOWTO: Raise a "File Download" Dialog Box for a Known MIME Type
Content-disposition: attachment; filename=fname.ext
对IE 在ASP:Response.AddHeader "content-disposition","attachment; filename=fname.ext"
Servlet:response.addHeader("content-disposition","attachemnt; filename=fname.ext");