Author: newbieAl | Posted on: 8/29/2008 7:30:26 AM | Views : 406

I've the following code:
string FileName = GetFileNameFromPath(this.TreeView1.SelectedNode.ValuePath);


            FileInfo fi = new FileInfo(this.TreeView1.SelectedNode.Value.ToString());
           
            Response.Clear();

            Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName);
            Response.AddHeader("Content-Length", fi.Length.ToString());
            Response.ContentType = "application/msword";
            Response.TransmitFile(FileName);
 & ...

Go to the complete details ...