closing a modal pop up
<p>I have a modal pop up that comes up when a hyperlink is clicked.. now i want to add a button withing the modal pop up to close it.. but i am not sure how to., i tried this</p>

<pre><code>&lt;ajaxToolKit:ModalPopupExtender ID="mPopup" runat="server" TargetControlID="HyperLink"
    PopupControlID="pnlItem" BackgroundCssClass="modalBackground" /&gt;
&lt;asp:Panel runat="server" ID="pnlItem" Style="display: none;" CssClass="PopupStyle" Width="400"&gt;
    &lt;div&gt;
        &lt;ucc:High ID="High" runat="server" /&gt;
        &lt;asp:Button ID="btnClose" runat="server" Text="CLOSE" 
            OnClientClick="javascript:document.getElementById('btnClose').click();return false;" /&gt;
    &lt;/div&gt;
&lt;/asp:Panel&gt;
</code></pre>

<p>But its not working.. it throws js script issues.</p>

<p>Any help would be much appreciated</p>
