Hi Everyone,
I was wondering if someone can help me. I am trying to open a PDF file from a button on a webpage. The code I am trying to use is......
Process.Start(@"C:\Inetpub\wwwroot\Website\Images\MyFile.pdf");
I also tried......
Process.Start("C:\\Inetpub\\wwwroot\\Website\\Images\\MyFile.pdf");
Now the problem I have is when I click the button, nothing happens. All I want to do is open this PDF file in a reader in another window. Any suggestions?
Thanks in advance!
Jay
Niradhip ChakrabortyRank #428 · 5.8K pointsPosted Apr 29, 2009, 5:23 AM EDT
Check out:
1.http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx/