ASP.net Embed pdf file on web page

How do I embed a .pdf file on a web page so that when the user clicks on a link or image it opens up?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Commented:
you can use this method of using a custom server control and the <embed> tags:

http://www.codeproject.com/Articles/20699/Embed-PDFs-into-a-Web-Page-with-a-Custom-Control

If you just want to use a link, just use a regular <a> tag pointing to the PDF, this would require they have a pdf reader on their client machine

<a href="somePdf.pdf">open pdf</a>
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0
All Courses

From novice to tech pro — start learning today.