Hide ModalPopupExtender on click
<p>on search staff button click ModalPopupExtender  is shown &amp; on ModalPopupExtender textbox,dropdownlist and button are shown.while i click the button on ModalPopupExtender it will hide the ModalPopupExtender but i don't want this to hide.
please tell some solution to prevent hiding of ModalPopupExtender 
on click on any button on ModalPopupExtender .</p>

<p>Thankyou</p>

<pre><code> &lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"&gt;
&lt;/asp:ToolkitScriptManager&gt;
&lt;asp:Button ID="btn_searchstaff" runat="server" Text="Search Staff"  /&gt;
    &lt;asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"  

   TargetControlID="btn_searchstaff" PopupControlID="Panel1"  

   BackgroundCssClass="modalBackground" 
DropShadow="true" CancelControlID="lnkbtn_cancel" OkControlID="btnok"&gt;
    &lt;/asp:ModalPopupExtender&gt;
    &lt;asp:Panel ID="Panel1" runat="server" CssClass="panel"&gt;
    &lt;table width="100%" style="height:200px;"&gt;
    &lt;tr&gt;
    &lt;td&gt;
    Search Staff
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td colspan="2"&gt;
    &lt;div id="divErr"&gt;
    &lt;/div&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;
        &lt;asp:Label ID="lbl_staffname" runat="server" Text="StaffName"&gt;&lt;/asp:Label&gt;
    &lt;/td&gt;
    &lt;td&gt;:&lt;/td&gt;
    &lt;td&gt;
     &lt;asp:TextBox ID="txtstaffname"
            runat="server"&gt;&lt;/asp:TextBox&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;
        &lt;asp:Label ID="lblareamanager" runat="server" Text="Area Manager"&gt;&lt;/asp:Label&gt;
    &lt;/td&gt;
    &lt;td&gt;:&lt;/td&gt;
    &lt;td&gt;
        &lt;asp:TextBox ID="txtsearchareamngr" runat="server"&gt;&lt;/asp:TextBox&gt;
        &lt;asp:DropDownList ID="ddlareamanager" runat="server"&gt;
        &lt;/asp:DropDownList&gt;
        &lt;asp:Button ID="btnsearchareamngr" runat="server" Text="Add" 
            onclick="btnsearchareamngr_Click" /&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td class="style2"&gt;
        &lt;asp:Label ID="lblworkbase" runat="server" Text="Work Base"&gt;&lt;/asp:Label&gt;
    &lt;/td&gt;
    &lt;td&gt;:&lt;/td&gt;
    &lt;td class="style2"&gt;
        &lt;asp:TextBox ID="txtsearchwb" runat="server"&gt;&lt;/asp:TextBox&gt;
        &lt;asp:DropDownList ID="ddlworkbase" runat="server"&gt;
        &lt;/asp:DropDownList&gt;
        &lt;asp:Button ID="btnsearchwb" runat="server" Text="Add" /&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
    &lt;td&gt;
    &lt;asp:Button ID="btnok" runat="server" Text="ok" onclick="btnok_Click" /&gt;
    &lt;/td&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;
        &lt;asp:LinkButton ID="lnkbtn_cancel" runat="server"&gt;Cancel&lt;/asp:LinkButton&gt;
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/table&gt;
            &lt;/asp:Panel&gt;
    &lt;/td&gt;
     &lt;/tr&gt;
     &lt;/table&gt;
</code></pre>
