-2

I want to click my linkbutton and open my pdf file that project has. How can i do this?

in aspx page:

in cs page: private void pdfShow_Click(){

///Please help this. }

1
  • Where do you store the PDF - file system or database? Commented May 12, 2016 at 16:39

1 Answer 1

0

try this it's simpler Response.Clear();

string filePath = ur file path on the server like ~/123.pdf Response.contentType = "application/pdf"; Response.WriteFile(filePath); 
Sign up to request clarification or add additional context in comments.

3 Comments

please provide some clarification of your answer
@Wais Please edit your existing answer instead of creating a new one.
what's the path to your pdf file something like ~/123.pdf

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.