async upload control in update panel (asp.net web forms)
There is an issue with upload controls when used with update panels. Moreover they are not just supported.
The quick fix is:
Put this in your page load Page.Form.Attributes.Add(“enctype”, “multipart/form-data”);
Put a trigger to your update panel : <Triggers>
<asp:PostBackTrigger ControlID=”btnSubmit” />
</Triggers>
Put your upload control : <asp:AsyncFileUpload ID=”fuImage” runat=”server” UploaderStyle=”Modern” Style=”margin-left: 100px;”
onchange=”return ImageValidate()” />
Thanks
Advertisement