show loading image using c# code behind
<p>I am working on a web application where I want to show a loading image (busy indicator) when my code create a xml file and download it I want to show the image in a div. I should use c# code only not update panel nor the jquery ajax technique. My code looks like:</p>

<pre><code>protected void lb_DownloadXML_Click(object sender, EventArgs e)
    {
        this.imgLoading.Visible = true;
        //all my code
        this.imgLoading.Visible = false;
    }
</code></pre>

<p>my image is </p>

<pre><code>&lt;img src="Images/loading_big.gif" width="50" height="40" runat="server" id="imgLoading"
                                    visible="false" /&gt;
</code></pre>

<p>but its not working. Can anybody explain me how can I achieve this task.</p>

<p>thanks in advance.</p>
