Quote:
and i dont know how to download the file using the linkbutton.
LinkButton
is like a normal button with
CSS
like an
anchor
Tag.
try this
protected void LinkButton1_Click(object sender, EventArgs e)
{
string filePath = "Your file path from the folder";
Response.ContentType = ContentType;
Response.AppendHeader("Content-Disposition", "attachment; filename=" + System.IO.Path.GetFileName(filePath));
Response.WriteFile(filePath);
Response.End();
}