I have developed a file directory to show files on one of our servers, but am experiencing problems when it comes to opening and saving files. I would like it so that when a user opens a file, it allows them to edit the document before closing it. The document type can be anything from Word to pdf.
Currently I am using the following code:
Expand|Select|Wrap|Line Numbers
- Response.AddHeader("Content-Disposition", "attachment; filename=" + e.CommandName);
- Response.WriteFile(filename);
- Response.Flush();
- Response.Close();
Thanks
Jon