Assign file path to FileUpload Control

后端 未结 1 485
不知归路
不知归路 2021-01-24 03:46

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 becomes blank (which i beli

相关标签:
1条回答
  • 2021-01-24 04:34

    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 讨论(0)
提交回复
热议问题