• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4912
  • Last Modified:

open pdf file from asp.net

I have an infragisitcs webgrid on my asp.net page.  This grid has a list of pdf files in it.  When I click on a grid row I would like to open the file automatically.  Does anyone know hwo to open a pdf file in acrobat reader from a web page?
1 Solution
try to open the pdf directly from the location. that will open in browser
add a hyperlink column in your webgrid then place the name of pdf in your querystring, you can now open the file using the querystring to validate the filename.

DataNavigateUrlField="PDFFileName" DataNavigateUrlFormatString="OpenPDFFile.aspx?filename={0}"
akobes05Author Commented:
I forgot to mention that the .pdf files are on the web server and Acrobat Reader is installed on the client machine.  Is there a way to spawn an instance of acrobat reader on the client machine and open the file from the web server?

The grid is basically a list of statements taht the client browser can view.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now