I have a DataGrid which is populated by a list of the .doc files in a folder.When one of the items in the list is clicked the browser should then download that file for the user to open. At the moment when one of the items is clicked the browser attempt to download the file from the root folder of the website, is there a simple line of code I can use to say 'download the file from "root/folder/folder/folder/filename.doc" instead of from "root/filename.doc"
Currently I am using this code:
DirectoryInfo dirInfo = new DirectoryInfo(Server.MapPath("Information/Health Safety and Environment/FIRE DOCS"));
articleList.DataSource = dirInfo.GetFiles("*.doc");
View Complete Post