Opening files on a server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jonno85
    New Member
    • Mar 2008
    • 1

    Opening files on a server

    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:

    Code:
            Response.AddHeader("Content-Disposition", "attachment; filename=" + e.CommandName);
    Response.WriteFile(filename);
    Response.Flush();
    Response.Close();
    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
  • radcaesar
    Recognized Expert Contributor
    • Sep 2006
    • 759

    #2
    The path of remote system should be like

    \\<IP Address>\<Drive >\<Folder>

    Comment

    Working...