I can download file from listbox but I want it to save in specific folder in local...
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
protected void btn_dwn_Click(object sender, EventArgs e)
{
string File = ListBox1.SelectedValue;Response.ContentType = ContentType; Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(File)); Response.End();
}
Now the files are saving in local, downloads folder. I don't want it to happen. I want it to automatically save in c:\ with new folder..... This is my code...Could anyone help me..
-
protected void btn_dwn_Click(object sender, EventArgs e)
{
string File = ListBox1.SelectedValue;Response.ContentType = ContentType; Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(File)); Response.End();
}
Now the files are saving in local, downloads folder. I don't want it to happen. I want it to automatically save in c:\ with new folder..... This is my code...Could anyone help me..