I want to download file from list box. Could anyone help?
-
string[] file = null;
int idx;
protected void Page_Load(object sender, EventArgs e)
{
DirectoryInfo dinfo = new DirectoryInfo(@"\\192.168.5.10\fbar\TOOLS\ProbingApps\ProbingSystem\DesktopCopyTemp");
FileInfo[] Files = dinfo.GetFiles("*.txt");
foreach (FileInfo file in Files)
{
ListBox1.Items.Add(file.Name);
}}
this is the code which shows files directory, and it display on listbox... Now, I want to download files from list box. I'm not sure with the code. please do help me....Thank You.
-
string[] file = null;
int idx;
protected void Page_Load(object sender, EventArgs e)
{
DirectoryInfo dinfo = new DirectoryInfo(@"\\192.168.5.10\fbar\TOOLS\ProbingApps\ProbingSystem\DesktopCopyTemp");
FileInfo[] Files = dinfo.GetFiles("*.txt");
foreach (FileInfo file in Files)
{
ListBox1.Items.Add(file.Name);
}}
this is the code which shows files directory, and it display on listbox... Now, I want to download files from list box. I'm not sure with the code. please do help me....Thank You.
-
Thank You. its really work..