.NET Framework - AJAX Asyncfileupload - how to refresh updatepanel after UploadedComplete

Asked By Mel on 18-Jan-12 10:24 AM
I am using the latest AJAX control toolkit (4.1.51116.0).  I have a
modalpopupextender, AsyncFileUpload and a gridview inside an update
panel in my web user control (.ascx) page .  The modal popup extender
appears and after the upload I want to update the gridview to display
some of the data I read in from the file.  I have search Goole forever
and tried many solutions and I cannot figure it out.  Please help.




Mel replied to Mel on 18-Jan-12 12:20 PM
Nevermind.  I finally got it.  Here is my ascx file if this helps
anyone out there.

CodeFile=3D"ImportSubstrates.ascx.vb"
Inherits=3D"ImportSubstrates" %>
Namespace=3D"AjaxControlToolkit" TagPrefix=3D"asp" %>

BehaviorID=3D"behidImp"
TargetControlID=3D"Button2" PopupControlID=3D"pnlImportSubstrates"
CancelControlID=3D"btnImpDone"
BackgroundCssClass=3D"modalBackground" />
runat=3D"server" CssClass=3D"modalPopup"
Width=3D"1000px">
Select the Excel file: <br />
Width=3D"800px" UploadingBackColor=3D"#CCFFFF" ThrobberID=3D"myThrobber" />

 <asp:Label runat=3D"server" ID=3D"myThrobber"
Style=3D"display: none;"><img align=3D"middle" alt=3D"" src=3D"images/
uploading.gif" /></asp:Label>
/
runat=3D"server" Text=3D""></asp:Label>       <br /><br />
AutoGenerateColumns=3D"False"
EmptyDataText=3D"No substrates have been imported."
ForeColor=3D"#333333">
SortExpression=3D"Item" ItemStyle-Wrap=3D"False">
Text=3D'<%# Bind("Item") %>'></asp:TextBox>
%# Bind("Item") %>'></asp:Label>
SortExpression=3D"Desc" ItemStyle-Wrap=3D"False">
Text=3D'<%# Bind("Desc") %>'></asp:TextBox>
%# Bind("Desc") %>'></asp:Label>
ItemStyle-Wrap=3D"False">
%# Bind("UM") %>'></asp:TextBox>
Bind("UM") %>'></asp:Label>
SortExpression=3D"Qty" ItemStyle-Wrap=3D"False">
'<
%# Bind("Qty") %>'></asp:TextBox>
%# Bind("Qty") %>'></asp:Label>
Bold=3D"True" />
HorizontalAlign=3D"Left" />
HorizontalAlign=3D"Center" />
ForeColor=3D"#333333" />
ForeColor=3D"White" />
ForeColor=3D"#284775" />
Width=3D"50px" ValidationGroup=3D"import" />