Closing Aspx page on PostBack by suppressing close confirmation
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 🙂
Categories: Misc
Tags: asp.net, close aspx page, close confirmation message, close window, JScript
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,241,448 hits
Translate
Categories
Top Posts
- [Step by Step] Postman tool to test Dynamics 365 online Web API
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- C# - Bulk Update Records - Pass Data Table to SQL Stored Procedure
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Power Apps - Understanding 'Variables'
- PowerApps - Step By Step - Build a simple Calculator App
- God Mode - Level Up - Dynamics 365 Chrome Extension
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table