Click here to Skip to main content
15,938,022 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pdf file is in gridview control,,i want to open this pdf to other browser using link button...how to do?
Posted
Comments
Kiran Susarla 12-Feb-13 3:54am    
what do you mean by other browser? You mean a new tab or new browser window?
Thomas Daniels 12-Feb-13 3:59am    
Comment by the OP, posted as a non-answer:
Yes other browser means new page
Jibesh 12-Feb-13 4:58am    
I removed his comments from the solution.
[no name] 12-Feb-13 4:14am    
i created a grid view.In the gridview i used a linkbutton . when we click this linkbutton,at that time pdf open in new web browser.
[no name] 12-Feb-13 4:22am    
pdf link is in my template....i want to browse link to next aspx page

1 solution

When you say pdf file is in gridview, I am assuming it is an hyperlink pointing to your pdf file.
1. Write the JavaScript onclick event for this hyperlink.
2. In the event you can call the window.Open method with the url of the pdf file you want to open.

Hope I am clear.
 
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