By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 1,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

Opening files on a server

P: 1

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
  1.         Response.AddHeader("Content-Disposition", "attachment; filename=" + e.CommandName);
  2. Response.WriteFile(filename);
  3. Response.Flush();
  4. 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!!

Mar 31 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 759
The path of remote system should be like

\\<IP Address>\<Drive>\<Folder>
Mar 31 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.