简体   繁体   中英

How can I set path in the fileupload control on page load

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:FileUpload ID="FileUpload1" runat="server" />

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

Assign file path to FileUpload Control

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM