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.
精彩评论