在ASP.Net Web应用程序中打开文件 [英] Open file in ASP.Net web application

查看:103
本文介绍了在ASP.Net Web应用程序中打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨frnds,



我对网络应用程序有疑问(VS 2012)。在Windows应用程序中,可以使用exe打开文件(即,通过右键单击文件(例如.txt文件)并使用此应用程序打开)。通过这种方式,我们可以打开Windows应用程序中的任何文件。



有没有办法用ASP.Net Web应用程序执行此操作?

,我想通过右键单击文件在Web应用程序中打开一个文件,然后选择打开方式......



预先提交坦克..

解决方案

试想一下:你的本地应用程序在哪里运行?您的Web应用程序在哪里运行?安全性如何:您是否希望在网络服务器上运行的某些应用程序可以简单地访问您计算机上的任何文件?

因此,答案是:您不能这样做。幸运的!

Hi frnds,

I have a doubt regarding web application(VS 2012). In windows applications, there is possibility to open a file using the exe(ie, by right clicking the file(eg .txt file) and open with this application). In this way we can open any file in our windows application.

Is there any way to do this with ASP.Net web application ?
ie, I want to open a file in the web application by right clicking on the file and choose "Open with.."

Tanks in advance..

解决方案

Just think about it: where does your local application run? And where does your Web Application run? And what about security: would you like that some application running somewhere on a server in the web could simply access any file on your computer?
So, the answer is: you cannot do so. Fortunately!


这篇关于在ASP.Net Web应用程序中打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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