Solution 1:
protected void Button5_Click(object sender, EventArgs e)
{
this.close()
}
Solution 2:
A. Write the Below code in Page_Load Event
Button5.Attributes.Add("onClick", "self.location.replace("default.aspx")")
B. And Remove, onclick="Button5_Click" FROM .aspx