What is the best way to close an ASPX page from the code-behind?
I have a button event handler that I want to close the page after the user has clicked an ASP.NET
You just need to add this property in your asp:Button element (for example):
OnClientClick="javascript:window.close();"
It works perfectly.