string fileToRenamePath = RMAConfig.PDFPath + "Return Documentation [ " + this.rmaObjSum.RMANum + " ]" + RMAConfig.Extension; // The valeu for fileToRenamePath here is : C:/RMA/Returns/Return Documentation[3232-32326].pdf WebClient client = new WebClient(); Byte[] buffer = client.DownloadData(fileToRenamePath); if (buffer != null) { Response.ContentType = "application/pdf"; Response.AddHeader("content-length", buffer.Length.ToString()); Response.BinaryWrite(buffer); }
Response.Write("<script>window.open('file.pdf',target='new');</script>")
Response.Write("<script>window.open('http://www.google.com.hk/','_blank');</script>");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)