how to view the pdf file in asp.net?

Posted by Prabu_Spark under ASP.NET on 11/7/2012 | Points: 10 | Views : 1011 | Status : [Member] | Replies : 2
Hi sir,
I want to view the pdf file in asp.net application. Can you tell me the solution for this problem.



With regards,
J.Prabu

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Hemanth.Sutapalli on: 11/7/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Prabu_Spark,
when ever we click the button it views your pdf.
.aspx code:
 <asp:Button ID="buton" runat ="server" Text ="pdffile"  OnClick ="hai" />

.cs Code:
  protected void hai(object sender, EventArgs e)

{
Response.Redirect("yourpdffile.pdf");
}



Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 11/8/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down

The post was good
just upload a pdf file to the project and on click of a button just redirect that pdf

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response