In DownLoad Click Event write the Following Code.
Response.ContentType = "Application/pdf";
//Get the physical path to the file.
string FilePath = MapPath("~/pdf/data.pdf");
//Write the file directly to the HTTP content output stream.
Response.WriteFile(FilePath);
Response.End();
This code is useful for download the PDF........
Twitter
Facebook
Digg
Delicious
Stumble

0 comments:
Post a Comment