我想用将下载 pdf 文件的代码替换 >>>>Response.WriteFile(FilePath);<<<< 。
LinkButton lnk = (LinkButton)sender;
if (lnk != null)
{
Response.ContentType = "Application/pdf";
string entry = lnk.CommandName;
string FilePath = _FilePath + GetFolderName(entry) + lnk.CommandArgument.ToString();
Response.WriteFile(FilePath);
Response.End();
}
提前致谢!!!:D