Hi,
Below is the code to close the current .aspx page in the Postback (i.e., On Button click) without “Close” confirmation dialog
// Close the window with no close confirmation
Response.Write(“<script language=’javascript’> { window.open(”, ‘_self’, ”); window.close(); }</script>”);
Hope it helps 🙂

![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)

Leave a comment