摘要:
先列出代码,过段时间再写说明protected void Page_Load(object sender, EventArgs e) { string strUrl = "http://"; SaveFile(strUrl); } private void SaveFile(string url) { int blocksize = 1024 * 100; byte[] buffer = new byte[blocksize]; string strFileName = @"D:\temp\1.pdf"; WebRequest request = Web 阅读全文
摘要:
先列出代码,过段时间再写说明 protected void Page_Load(object sender, EventArgs e) { string file = Request["file"]; if (string.IsNullOrEmpty(file)) return; string filepath = Server.MapPath("~/Download/" + file); if (File.Exists(filepath)) //DownLoadStreamFile(filepath); ToOpen(filepath, "& 阅读全文