I want to replace >>>>Response.WriteFile(FilePath);<<<< with a code that will download the pdf file.
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();
}
thanks in advance!!! :D