Click here to Skip to main content
15,916,949 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

In my application I have a grid which is showing the attached files with a link button. By clicking the filename link button I want to show the file to the user, these all working fine. My query is how to display the file in a popup window. When the user clicks on the FileName link button the Pop up should open to show the file content. How to do this.



Thanks in Advance
Posted
Comments
BillWoodruff 24-Sep-14 4:03am    
Is this a question about web programming using the Ajax Modal Popup Extender ? Please tag your question to indicate more clearly what it is about.

1 solution

You could put target="_blank" in your opening link and it will open in new window without pop-up.



Use this code[^] to append text from the file to your popup div.

Call jQuery.dialog()[^] on that div and you're done.

Almost copy / paste job :)
 
Share this answer
 
v2
Comments
Member 7946563 24-Sep-14 2:22am    
Our client is asking to display it in a popup not in a new window.
Sinisa Hajnal 24-Sep-14 3:00am    
Improving

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