how to show alert popup after finishing database processing?
<p>is there any way to show label that shows "uploading.." while my button click is processing?</p>

<p>I am doing it in this way</p>

<p>`</p>

<p>protected void btnUpload_Click(object sender, EventArgs e)</p>

<pre><code>{

        lblOutput.Text="uploading..";


    HttpPostedFile postedFile = FileUpload1.PostedFile;
    string ClientFileName, ServerFileName;

    if ((FileUpload1.HasFile &amp;&amp; FileUpload1.PostedFile != null) || txtUrl.Text!="")
    {
       try
       {
            HttpPostedFile myFile = FileUpload1.PostedFile;

            if (fileType == "Image")
            {
                if (fileExt == ".jpg" || fileExt == ".gif" || fileExt == ".png" || fileExt == ".bmp" || fileExt == ".tif")
                {





                    ServerFileName = System.IO.Path.Combine(ServerSavePathI, ClientFileName);

                    string serverPath = Server.MapPath(ServerFileName);

                    FileUpload1.SaveAs(serverPath);


                    dbInsert(fileType, fileName, fileExt, filePath+fileType+"/"+fileName.Replace(" ",string.Empty)+fileExt, url);



                }
</code></pre>

<p>}</p>

<p>}</p>

<p>`</p>

<p>but it showed after my file has been uploaded already. </p>

<p>Am i doing something wrong? or is there any other way to do that?</p>
