Using System.Net;
WebClient client = new WebClient();
string url = @"http://go.hr-manager.net/a487b073d8";
byte[] data = client.DownloadData(new Uri(url));
Response.Clear();
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}", "aspnet.pdf"));
Response.OutputStream.Write(data, 0, data.Length);
WebClient client = new WebClient();
string url = @"http://go.hr-manager.net/a487b073d8";
byte[] data = client.DownloadData(new Uri(url));
Response.Clear();
Response.ContentType = "application/pdf";
Response.AppendHeader("Content-Disposition", String.Format("attachment; filename={0}", "aspnet.pdf"));
Response.OutputStream.Write(data, 0, data.Length);
No comments:
Post a Comment