Aya Aboud Aya Aboud - 5 months ago 55
ASP.NET (C#) Question

UpdatePanel refresh and remove popup screen

All my work in popup screen. I use user control

to upload file when i use
it not send file so i constrained to use
but page make reload and popup screen is removed. i want suggestion in this point how to send file without refresh page and remove popup?

<%@ Register Src="~/UserControls/ImportCSVFile.ascx" TagName="ImportCSVFile" TagPrefix="uc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline" UpdateMode="Conditional" ChildrenAsTriggers="true">
<table cellspacing="0" width="100%">
<tr align="center">
<td align="right">
<uc1:ImportCSVFile ID="ImportCSVFile" runat="server" />
<asp:PostBackTrigger ControlID="ImportCSVFile" />


I guess your ImportCSVFile Control use asp.net FileUpload-Control. It doesn't work with partial postbacks in UpdatePanel. You could switch to the AsyncFileUpload-Control (see http://www.ajaxtoolkit.net/AsyncFileUpload/AsyncFileUpload.aspx)

Regards, Sebastian