我怎么能在页面加载FileUpload控件设置路径 [英] How can I set path in the fileupload control on page load

查看:188
本文介绍了我怎么能在页面加载FileUpload控件设置路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我怎么可以在文件上传控件设置的路径,我会从数据库中,我需要证明它在页面加载或其他方法将文件上传的路径。可有一个人告诉我怎样才能做到这一点。

Hi all how can I set path in the file upload control, I will get the path from database which I need to show it on the fileupload on page load or some other method. Can some one tell me how can I achieve this

< ASP:文件上传ID =FileUpload1=服务器/>

在我的网页加载有一个code,将检索数据库,我需要显示在FileUpload控件作为其路径

in my page load there is a code that will retrieve the path from db which I need show on fileupload control as its path

推荐答案

这是稍微很难找到,但这里的答案

This was slightly hard to find, but the answer here

分配到FileUpload控件文件路径

表明,它是不可能的,由于安全方面的原因,使用标签提供了另一种方法。

indicates that it isn't possible due to security reasons, and provides an alternative method using a label.

这篇关于我怎么能在页面加载FileUpload控件设置路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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