我想点击我的linkbutton并打开该项目的PDF文件。 我该怎么做?如何在我的ASP.net Web应用程序中显示pdf文件?
在aspx页面:
在CS页面: 私人无效pdfShow_Click(){
///请帮助这个。 }
我想点击我的linkbutton并打开该项目的PDF文件。 我该怎么做?如何在我的ASP.net Web应用程序中显示pdf文件?
在aspx页面:
在CS页面: 私人无效pdfShow_Click(){
///请帮助这个。 }
试试这个更简单 Response.Clear();
string filePath = ur file path on the server like ~/123.pdf
Response.contentType = "application/pdf";
Response.WriteFile(filePath);
您在哪里存储PDF文件系统或数据库? – Win