protected void registrationHelpIcon_ServerClick(object sender, EventArgs e) { try { string appBaseUrl = Request.Url.Scheme + "://" + Request.Url.Authority + Request.ApplicationPath.TrimEnd('/') + "/"; string pdfPath = "Temp/xtLytics_security_module.pdf"; WebClient client = new WebClient(); Byte[] buffer = client.DownloadData(appBaseUrl + pdfPath); Response.ContentType = "application/pdf"; Response.AddHeader("content-length", buffer.Length.ToString()); Response.BinaryWrite(buffer); } catch(Exception ex) { Logger.Log(LogLevel.SystemError, ex); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)