开发者

Assign full file path of FileUpload in textbox control back to FileUpload on postback

I have a FileUpload control in an UpdatePanel and when user select a file, the full file path will will be stored in a hiddenfield, and during postback, i would like to assi开发者_开发问答gn the full file path in the hiddenfield back to the FileUpload control textbox, possible to achieve that?


That is not possible because you cannot assign a file path to the FileUpload control. Browsers don't allow that because it would be a security risk.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜