开发者

Assign file path to FileUpload Control

开发者 https://www.devze.com 2023-02-25 00:01 出处:网络
How can i assign file path to FileUpload Control in VS 2005? Why i need that?: \'cause, when i edit a row in GridView, the fileupload control 开发者_如何学Pythonbecomes blank (which i believe is corr

How can i assign file path to FileUpload Control in VS 2005?

Why i need that?: 'cause, when i edit a row in GridView, the fileupload control 开发者_如何学Pythonbecomes blank (which i believe is correct but client doesn't!!!) and a validation is thrown saying "File to be upload is not selected".


This is not possible due to security restrictions. The only way to set that property on the FileUpload control is to have the user make a selection.

But other solution is make use of lable control to display file path rather than file upload control. and when use click to upload file hide lable and display file upload control.

0

精彩评论

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