AsyncFileUpload - Show upload confirmation message (javascript alert)

AsyncFileUpload - Show upload confirmation message (javascript alert)
ShowConfirmationMessage.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html>
<script runat="server">
    protected void AsyncFileUpload1_UploadComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e)
    {
        string filePath = Request.PhysicalApplicationPath + "UploadFolder\\" + AsyncFileUpload1.PostedFile.FileName;
        AsyncFileUpload1.SaveAs(filePath);
    }    
</script>
<script type="text/javascript">
    function uploadConfirmation() {
        alert('file uploaded succesfully!');
    }
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Ajax AsyncFileUpload - How to show upload confirmation message (javascript alert)</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:DeepPink; font-style:italic;">Ajax AsyncFileUpload Example: How To Show Confirmation Message</h2>
        <hr width="725" align="left" color="LightPink" />
        <asp:ScriptManager 
            ID="ScriptManager1"
            runat="server"
            >
        </asp:ScriptManager>
        <br /><br />
        <cc1:AsyncFileUpload 
            ID="AsyncFileUpload1" 
            runat="server" 
            OnUploadedComplete="AsyncFileUpload1_UploadComplete"
            OnClientUploadComplete="uploadConfirmation"
            BackColor="PaleGoldenrod"
            />
    </div>
    </form>
</body>
</html>
Related ajax asp.net example