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,555,595 hits
Tweets
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 2 hours ago
- RT @ravichada: 🎥 The demo video is ready now. Do check out the Dataverse Security Roles risk assessment tool in action. Leave a comment or… 2 hours ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 2 hours ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 2 weeks ago
- New blog post : Dataverse solution import error | Environment variable value cannot be an empty string rajeevpentyala.com/2023/01/05/dat… 3 weeks ago
Join 400 other subscribers
Top Posts
- [Step by Step] Postman tool with Microsoft Dataverse Web API
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Azure DevOps (ADO) | Pipeline failure | You need the Git 'GenericContribute' permission
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- Power Apps component framework (PCF) - Beginner guide
- Power Platform - Pass json collection from Canvas App to Power Automate
- Power Automate Flows | 'Callback Registration Expander' System Jobs stuck at 'Waiting For Resources'
- Power Apps - 'Environment Variables' and their usage in Canvas Apps
- Power Apps | Canvas App | StartScreen property
- Get and Set ‘Partylist’ fields using Jscript