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
For closing a asp.net windows application,
Then write the below given code inside its click event
" this.close(); "
ie:
private void button2_Click(object sender, EventArgs e) { this.Close(); }