你将如何让用户在Web应用程序编辑附件? [英] How would you allow users to edit attachments in a web application?

查看:134
本文介绍了你将如何让用户在Web应用程序编辑附件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经创建了一个Web应用程序,使用ASP.NET中,允许用户上传文档,并将它们连接到业务实体,如客户,联系人等。

We have created a web application, using ASP.NET, that allows users to upload documents and attach them to business entities, like customers, contacts and so on.

的应用运行在内部网和所有文件都通过web应用上载到服务器上的共享文件夹。

The application runs on the intranet and all files are uploaded through the web application into a shared folder on the server.

我想,从网页右侧,为用户的打开实际的文件,修改,然后保存的变化回到原来的位置。这是一个小菜一碟在Windows环境下的,我只是想知道如果有,是什么,在网络环境中处理最好的方法?

I would like, right from the web page, for the user to open the actual file, edit it and then save the changes back to the original location. This is a piece of cake in a Windows environment, I'm just wondering what, if any, is the best way to handle this in a web environment?

这些文件通常是Word文档,Excel文档和图像。

The files are usually Word documents, Excel documents and images.

澄清

我们将显示在列表格式的所有附件。我们希望它使用户可以点击编辑链接,该文件将在适当的应用程序打开,例如,Microsoft Word或Microsoft Excel。我觉得在Windows中的文件关联将已处理这个问题。我们只是想挽回我们的用户及时下载原始文件,让自己的修改,删除旧文件,并上传新文件。

We would display all the attachments in a list format. We would like it so that the user would click on an edit link and the file would be opened in the appropriate application, for example, Microsoft Word or Microsoft Excel. I think the file associations in Windows would already handle this. We are just trying to save our user the time to download the original file, make their changes, delete the old file, and the upload the new file.

推荐答案

如果您的所有客户端计算机都是Windows,地图服务器每个客户端上相同的盘符上的共享文件夹,并使用file://格式

If all your client computers are Windows, map a shared folder on the server to the same drive letter on every client and use the file:// format.

让我们说你共享\\服务器名\\共享到H:每个客户端的计算机上,则可以使链接的文件:// H:\\ pat_to_the_file_under_your_share \\ fileName.doc

Let's say you share \ServerName\ShareName to H: on every client's computer, the you can make the link as file://h:\pat_to_the_file_under_your_share\fileName.doc

如果不是客户端的计算机中的每一个是Windows,那么你可以尝试让你的链接如下(不知道OT作品):

If not every one of the client's computers are in Windows, then you might try to make your links as follows (not sure if ot works):

文件:// \\服务器名\\共享\\ pat_to_the_file_under_your_share \\ fileName.doc

file://\ServerName\ShareName\pat_to_the_file_under_your_share\fileName.doc

这篇关于你将如何让用户在Web应用程序编辑附件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆