傲雪凌峰
一个后来者,期待在技术上有所进步。
string contentType = "";
 string FilePath = "";
 Page.Response.Clear();
 Page.Response.ContentType = contentType;
 Page.Response.AppendHeader("Content-Disposition", "attachment;filename=" + FilePath);
 Page.Response.WriteFile(FilePath);
 Page.Response.End();
posted on 2008-03-17 16:20  傲雪凌峰  阅读(177)  评论(0)    收藏  举报