Click here to Skip to main content
15,905,148 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear sir

I want to show the pdffiles in a webpage when i click the link button in asp.net using C# how to do that.
Posted

Just have the link's href point to the file, it will open the PDF when clicked. Or set the target open in a new window. Is there something special you want?
 
Share this answer
 
Hi
sujithmtla


Use
<iframe src="sample.pdf"></iframe>
it will display pdf in web page

or use <embed src="sample.pdf"> it will display pdf document in web page
 
Share this answer
 
v2
Comments
Kats2512 14-Nov-17 9:38am    
6 year old question that already has an answer that has been accepted.

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