更新时间:2023-12-04 20:05:34
看看 ^ ]
希望对您有所帮助:)
发生回发时,我认为它会将现有文件路径作为预加载并删除.出于安全原因,您无法预加载a的名称文件放入FileUpload控件.
以下链接将提供解决方案.
维护回发中的文件上传控制
>
Hello,
I have a asp.net form on which i am using fileupload control. I choose a file to be uploaded but each time if i click on any check box,button which causes postback, the chosen file gets lost/removed from the fileupload control.Every time after checking check box or postback i have to reselect file from fileuploader. Please help me to get rid of this problem.
thankyou,
regards,
gauri
Have a look at This[^]
hope it helps :)
When there is a postback I think it takes the existing file path as a preload and takes it off.For security reasons, you cannot pre-load the name of a file into the FileUpload control.
Following link will provide the solution.
Maintain File Upload Control on Postbacks