On my web page I have this .NET control:
<asp:FileUpload ID="FileUploadSS" type="file" runat="server" Width="325px" Font-Size="12pt" Height="25px" />
to select a file or use a photo taken 'on site'.
After the user has selected an image, I save it by use of this:
FileUploadSS.SaveAs(Server.MapPath("Uploads/" & ImageName))
The web page can be used on computer, tablet, or cell phone. Especially when using a cell phone, the upload time can be long (e.g. weak internet connection) and therefore I want to display a 'wait' message with an animated GIF contained in a DIV.
I can easely START the 'wait' message when the user clicks the 'save' button:
Page.ClientScript.RegisterStartupScript(Me.GetType(), "Turn on 'wait'", "document.getElementById('wait').style.display = 'inline';", True)
The problem is that I cannot find a way to determine WHEN the upload has finished and after this turn OFF the 'wait' message.
Can anyone help me with this?
Thank you in advance!