pdf in a browser

Right now, i have a function which returns a pdf and let user save or open it from a webpage.
 HttpContext.Current.Response.ContentType = "application/pdf"
 HttpContext.Current.Response.AppendHeader("content-length", data.Length.ToString())
 HttpContext.Current.Response.AddHeader("Content-Disposition", "filename=temp.pdf")
i want to have a "View/Print" button on the page, which will open it in a browser and user can print or save from there as well.  What happens if PDF plugin is missing?
Who is Participating?
Easwaran ParamasivamConnect With a Mentor Commented:
If adobe reader is not installed the pdf could not be viewed. Verify whether it is installed using the code mentioned in below link. If not, alert the user.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.