How to automatically hide a modal popup control?
<p>I have a model pop extender control like:</p>

<pre><code> &lt;cc1:ModalPopupExtender ID="basketPopUp" runat="server" 
    PopupControlID="Panel1" 
    PopupDragHandleControlID="PopupHeader" 
    Drag="true" 
    BackgroundCssClass="ModalPopupBG"
    TargetControlID="Panel1"&gt;
&lt;/cc1:ModalPopupExtender&gt;
&lt;asp:Panel ID="Panel1" Style="display: none" runat="server"&gt;
    &lt;div class="PopupBody"&gt;
        &lt;b&gt;Test&lt;/b&gt;
        &lt;br /&gt;
    &lt;/div&gt;
&lt;/asp:Panel&gt;
</code></pre>

<p>What i want is to show the popup for 5 seconds and HIDE it AUTOMATICALLY after this period of time.</p>

<p>I've tried this, but, running on the server side, of course it is not working:</p>

<pre><code> public void showAndHidePopUp()
{
    basketPopUp.Show();
    System.Threading.Thread.Sleep(5000);
    basketPopUp.Hide();
}
</code></pre>

<p>Do you know how to hide it in a proper way?</p>

<p>Thanks.</p>

<p><strong>Edit:</strong></p>

<p>For announcementes i've decided to use jGrowl-> <a href="http://www.stanlemon.net/projects/jgrowl.html" rel="nofollow">http://www.stanlemon.net/projects/jgrowl.html</a></p>

<p>and not ModalPopUp Extender.</p>
