---
title: "Close popup window by Server side code"  
description: "Close popup window by Server side code"  
author: "Anonymous User"  
published: 2011-01-06  
updated: 2011-01-06  
canonical: https://www.mindstick.com/forum/143/close-popup-window-by-server-side-code  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Close popup window by Server side code

I am working on a [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about) where I have to do some [calculation](https://www.mindstick.com/forum/160723/factorial-calculation) on [popup](https://www.mindstick.com/blog/11734/how-to-create-advanced-popup-or-banners-with-news-images-discounts-in-magento2) window.\
Please help me with [sample](https://www.mindstick.com/news/2174/mars-mission-by-nasa-prepares-for-tests) [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) or with [useful](https://www.mindstick.com/articles/12694/how-dolomite-mineral-is-useful-in-human-life) link.\
I am using [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) 3.5\
\
Thx \

## Replies

### Reply by Uttam Misra

After your calculation, try below lines of code...\
\

Response.Write("<script>window.close();</" + "script>");

Response.End();

\


---

Original Source: https://www.mindstick.com/forum/143/close-popup-window-by-server-side-code

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
