Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all

I am very new to programming and am having a hell of a time finding an answer to this what might seem to be a simple question.
I am trying to open a popup window (Javascript window.open) from within a radwindow.

Scenario is this
I have page that has a grid to which when I click a link it opens a radwindow to display the information requested. Among the items is a link to a saved pdf document within the users data folder. What I am trying to do is open a popup window that will download and display the pdf file. My problem is I have search high and low for a solution for this issue but cannot find one. I have found many example of javascript functions on the internet but none seem to work. I may be in over my head but I al really stuck here. Can someone help? Oh lastly I am trying to do this from code behind in asp.net c#.

Thanks you all in advance for your help.
Posted

1 solution

if you want pdf document from a link simply use href property of link as address to pdf file. for example you have a label you are showing the pdf file name, write the below code on your dataloading function

C#
lblFile.Text=string.Format("<a href="{0}" target="_blank" title="{1}">{1}</a>",pdffilepath, fileName);


in case of any query plz let me know.

--Pankaj
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900