Friday, September 01, 2006

Popup .PDF File in New Window from Code Page

//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 " +
"'"+ sPDFPath + "', 'CustomPopUp', " +
"'width=600, height=600, menubar=no, resizable=yes');";

//Attach Script to button control

1 comment:

Anonymous said...

Thanks for your help...

Most Recent Post

Community Updates

Subscribe Blog via Email

Enter your email address:

Disclaimers:We have tried hard to provide accurate information, as a user, you agree that you bear sole responsibility for your own decisions to use any programs, documents, source code, tips, articles or any other information provided on this Blog.
Page copy protected against web site content infringement by Copyscape