How to close a pop up window
<p>I am using this code.This pop up window pops up when I clicks a button on the main page.Now I want the pop up window to be closed if the password is successfully changed and reload the main page,but if the password is not changed then refresh the pop up window again.
Here is the code..... </p>

<pre><code>&lt;asp:Textbox id="curnt_paswrd" textmode="Password" runat="server" /&gt;
</code></pre>

<p> 
