I have an application that uploads an excel spreadsheet to a gridview. The gridview is then loaded into a table in a database. That works fine, but the updateprogress control will not display. Any help would be greatly appreciated. Here is the asp.net code:
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div class="content">
Select file:
<asp:UpdatePanel runat="server" ID="pnlUpload">
<Triggers>
<aspostBackTrigger ControlID="btnRunImport" />
</Triggers>
<ContentTemplate>
<fieldset>
<asp:FileUpload ID="fuGroupAwarenessXLS" runat="server" />
<asp:Button ID="btnRunImport" runat="server" Text="Upload" OnClick="btnRunImport_Click" />
<br />
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress runat="server" ID="uplGroupAwareness" AssociatedUpdatePanelID="pnlUpload" >
<ProgressTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl="~/ADMIN/new/PRIVATE/GAINSHARE/group_growth/ajax-loader.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
</div>
</form>
</asp:Content>
VB.net code
Protected Sub btnRunImport_Click(sender As Object, e As EventArgs) Handles btnRunImport.Click
ImportToGrid()
End Sub
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div class="content">
Select file:
<asp:UpdatePanel runat="server" ID="pnlUpload">
<Triggers>
<aspostBackTrigger ControlID="btnRunImport" />
</Triggers>
<ContentTemplate>
<fieldset>
<asp:FileUpload ID="fuGroupAwarenessXLS" runat="server" />
<asp:Button ID="btnRunImport" runat="server" Text="Upload" OnClick="btnRunImport_Click" />
<br />
</fieldset>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdateProgress runat="server" ID="uplGroupAwareness" AssociatedUpdatePanelID="pnlUpload" >
<ProgressTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl="~/ADMIN/new/PRIVATE/GAINSHARE/group_growth/ajax-loader.gif" />
</ProgressTemplate>
</asp:UpdateProgress>
</div>
</form>
</asp:Content>
VB.net code
Protected Sub btnRunImport_Click(sender As Object, e As EventArgs) Handles btnRunImport.Click
ImportToGrid()
End Sub