Click here to Skip to main content
11,715,425 members (80,334 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET PDF
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 6-Jun-10 23:05pm
Comments
aspdotnetdev at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

That should do the trick.
  Permalink  
v3
Comments
aspdotnetdev at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

There are a couple ways:
<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>
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Add the table to it and then used the target tag in href
  Permalink  
Comments
prathameshpitale at 7-Jun-10 10:24am
   
Can u explain in details?
i am new To Asp.net
aspdotnetdev at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 485
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 785
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320


Advertise | Privacy | Mobile
Web03 | 2.8.150901.1 | Last Updated 7 Jun 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100