Show UpdateProgress in update panel only when a particular event is occur
<p>I have an update panel which contains two buttons one is submit and other is cancel.</p>

<p>Now i want when i will click on submit button then progress bar displays.</p>

<p>But when i will click on cancel button it should not display.</p>

<pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
    &lt;ContentTemplate&gt;
     &lt;br /&gt;
                        &lt;asp:UpdateProgress runat="server" ID="PageUpdateProgress" DisplayAfter="0" &gt;
                            &lt;ProgressTemplate&gt;
                                &lt;img src="../images/ajax-loader.gif" alt="Loading...." /&gt;&lt;br /&gt;
                            &lt;/ProgressTemplate&gt;                            
                        &lt;/asp:UpdateProgress&gt;

&lt;asp:LinkButton ID="lnkSubmit" runat="server" CssClass="lnk"&gt;Submit&lt;/asp:LinkButton&gt;
  &lt;asp:LinkButton ID="lnkCancel" runat="server" CssClass="lnk"&gt;Cancel&lt;/asp:LinkButton&gt;
    &lt;/ContentTemplate&gt;
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>Please help me i am tired to try to solve it.</p>

<p>Thanks ,Rajbir</p>
