What is the best way to close a browser window of an AJAX ASP.NET application after the server-side has been executed.
I found this solution, but it seems a little complex for what I want to accomplish. Or is this the best way to accomplish my task.
UPDATE: I have to close the window after the button is pressed
UPDATE 1: I tried the solution from the other SO question, and it did not work for me.
<asp:Button ID="btnMyButton" runat="server" onClick="btnMyButton_Click" />
protected void btnMyButton_Click(object sender, EventArgs e)
{
}