Programmatically close aspx page from code behind
<p>What is the best way to close aspx page from the code behind?  </p>

<p>I have an button eventhandler that I want to close the page after the user has clicked an ASP.NET button on the page.  I have tried to programmatically add a javascript method that contains a window.close() command to the OnClientClick event to close the page but it does not work.  The button is also a asp:AsyncPostBoskTrigger for an AJAX Update Panel.</p>

<p>It is an ASP.NET C# 3.5 application.</p>
