使用c#的Fileupload控制设置路径 [英] Fileupload control set path using c#

查看:204
本文介绍了使用c#的Fileupload控制设置路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新面板中使用文件上传控件。在我的页面中,当我们点击页面回发的任何按钮并且从fileuploader中清除路径时,最多有5-6个按钮。有什么方法可以在文件上传器中保存价值。



请尽快给我解决方案...

I am using file upload control inside the update panel. in my page there are max of 5-6 buttons are present when we click on any button the page postbacks and the path is getting cleared from the fileuploader. is there any way to hold value inside the file uploader.

Please give me the solution for this as soon as possible...

推荐答案

否。

出于安全原因,文件上传器不会以任何形式路径到服务器的路径。想一想:运行浏览器的设备甚至可能没有路径概念,更不用说服务器可以理解或关联的路径了。它可以是PC,MAC或支持互联网的冰箱,你可以知道 - 你不能访问文件名以外的信息(特殊情况除外,在99.999%的浏览器情况下不会发生)。
No.
The file uploader does not path the path to the server in any form for security reasons. Think about it: the device running the browser may not even have a concept of paths, much less a path that your server can understand or relate to. It could be a PC, and MAC, or an internet enabled fridge for all you know - you cannot access information other than the file name (except in special cases, which do not occur in 99.999% of browser cases).


这篇关于使用c#的Fileupload控制设置路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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