<asp:ScriptManager ID="scriptMgr" runat="server" /> <asp:UpdateProgress runat="server" id="PageUpdateProgress"> <progresstemplate> Loading...<img border="0" src="Images/loading.gif" alt="loading" style="z-index: 1100;" /> </progresstemplate> <asp:UpdatePanel ID="updatePnl" runat="server" UpdateMode="Conditional" > <contenttemplate> <table cellpadding="0" cellspacing="0" width="800px" border="0" align="center" class="description"> <tr> <td width="70%"> <asp:FileUpload Width="250px" CssClass="field" ID="fileUploadText" runat="server" /> </td> </tr> <tr class="alt"> <td valign="top" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="60%" align="right"> <asp:Button ID="btnSubmit" runat="server" Text="Submit" CssClass="button" onclick="btnSubmit_Click" OnClientClick="ShowProgress();"/> </td> </tr> </table> </td> </tr> </table> </contenttemplate> <triggers> <asp:PostBackTrigger ControlID="btnSubmit"/> </triggers>
protected void btnSubmit_Click(object sender, EventArgs e) { string filePath = Server.MapPath("Input File/" + fileUploadText.FileName); fileUploadText.PostedFile.SaveAs(filePath); System.Threading.Thread.Sleep(5000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)