Hi all,
I want to list x no. of files and on click it as to be downloaded and saved in the path required by the user.
Can you please help me to solve the issue.
Thanks
Prajwal
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Krishna GaradPosted Dec 21, 2010, 5:47 AM
Sam HobbsPosted Dec 20, 2010, 7:09 AM
Subhendu DePosted Dec 20, 2010, 6:26 AM
====
CodeBehind
========
namespace PracticeWeb
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
IList
{
new clsFiles{ FileName="One.xlsx",FilePath=@"./SampleFolder/1.xlsx",FileType="xlsx"},
new clsFiles{ FileName="Two.docx",FilePath=@"./SampleFolder/2.docx",FileType="docx"},
new clsFiles{ FileName="Three.pdf",FilePath=@"./SampleFolder/3.pdf",FileType="pdf"},
new clsFiles{ FileName="Four.pptx",FilePath=@"./SampleFolder/4.pptx",FileType="pptx"},
};
ListView1.DataSource = _files;
ListView1.DataBind();
}
}
}
public class clsFiles
{
public string FileName { get; set; }
public string FilePath { get; set; }
public string FileType { get; set; }
}
}
Thanks.....
prajwal kpPosted Dec 20, 2010, 5:02 AM
On click of a link it as to be downloaded.
Waiting for your reply
Subhendu DePosted Dec 20, 2010, 12:46 AM