Hi @peter liles ,
When i attempt to save files the FileUpload controls are reset to empty? I have tried various means like placing UpdatePanel outside Modal without success. It just doesnt like updateprogress control?
First, a full postback is required when you submit the form to upload the file, so the situation you mentioned is normal (fileupload controls are reset to empty), in fact the file has been correctly uploaded to the path you specified. Or is there something wrong with the upload code?
Second, if you need to display the updateprogress based on the state of the UpdatePanel, then you need to use asyn postback trigger, the full postback won't work with it.
To sum up, there is a contradiction between your requirements, so I am afraid you cannot achieve this. I also created simple examples to reproduce your problem and tested them separately. Something like this, you could also test these code and you will find it:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
......
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="UploadButton" />
<%--<asp:AsyncPostBackTrigger ControlID="UploadButton" EventName="Click" />--%>
</Triggers>
</asp:UpdatePanel>
Best regards,
Xudong Peng
If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.