//Add the Following in Web.Config File
//Add the Following Line of Code in Page Load Event
//Find the path of Download .PDF File from Web.Config File
string sPDFPath = ConfigurationSettings.AppSettings["Pdf_Path"].ToString();
//Prepare a script to open the file in a new window
string popupScript = "Javascript: return " +
"window.open('"+ sPDFPath + "', 'CustomPopUp', " +
"'width=600, height=600, menubar=no, resizable=yes');";
//Attach Script to button control
btnDownloadPdf.Attributes.Add("onclick",popupScript);
1 comment:
Thanks for your help...
Post a Comment