Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am writing an application which will have tree-view in left side and other right side i want to view pdf file according to Selected node in a tree view.

Now i don't know how to Link pdf file to other Part of a Web page.

Please help me.
Posted
Comments
AspDotNetDev 7-Jun-10 19:26pm    
I deleted your "answers" that were really comments/questions. If you need to make an update to your question, the ideal way is to edit your original question rather than posting fake answers to it. You can also comment directly on answers.

<a href="/pdfdirectory/pdffile.pdf" target="_blank">PDF FILE</a>


That should do the trick.
 
Share this answer
 
v3
Comments
AspDotNetDev 7-Jun-10 19:09pm    
That would open the PDF in a new window, but the OP was asking how to open the PDF in the same page to the right of a tree view.
There are a couple ways:
HTML
<embed src="MyFile.pdf" width="800" height="600">
<object data="MyFile.pdf" type="application/pdf" width="800" height="600">
	Download <a href="MyFile.pdf">PDF</a>.
</object>
 
Share this answer
 
Add the table to it and then used the target tag in href
 
Share this answer
 
Comments
prathameshpitale 7-Jun-10 10:24am    
Can u explain in details?
i am new To Asp.net
AspDotNetDev 7-Jun-10 19:08pm    
Why would there need to be a table? What would you set the target of? And what would you set it to?

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