Hi,
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:
This opens the file on the local machine, not as an instance of the file on the server. I would be grateful if somebody can help me!!
Thanks
Jon
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:
Code:
Response.AddHeader("Content-Disposition", "attachment; filename=" + e.CommandName);
Response.WriteFile(filename);
Response.Flush();
Response.Close();
Thanks
Jon
Comment