Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); string
urlName = HttpUtility.UrlEncode(f.f_filename,System.Text.Encoding.UTF8);
Response.AddHeader("Content-Disposition", "attachment;filename=" + urlName);
Response.AddHeader("Content-Length", info.Length.ToString());
Response.AddHeader("Content-Transfer-Encoding", "binary"); Response.ContentType
= "application/octet-stream"; Response.ContentEncoding =
System.Text.Encoding.GetEncoding("gb2312"); Response.WriteFile(info.FullName);
Response.Flush(); Response.End();
每个response 的什么意思都 ????
详细查看MDSN各个方法的解释:http://msdn.microsoft.com/zh-cn/library/system.web.httpresponse%28v=VS.80%29.aspx
简单解释就是向客户端输出指定类型的信息。