开发者

Assign file path to FileUpload Control

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜