?
Solved

ASP Window Close Automatically After Download using codebeind?

Posted on 2006-04-21
1
Medium Priority
?
194 Views
Last Modified: 2008-03-10
Crazy is it not? Of all the things ASP can do, it seems one small detail is missing, 'Window.Close();'

I guess maybe I've been working on Window Apps too long.

Anyway, I need to 'call' a window to close automatically after another funtion runs, namely FileDownload();

I like the codebehind of ASP and would like to find a code that will close my window when I like,

WITHOUT the IE questioning the Internet user "Do you want to close this window?"
0
Comment
Question by:kvnsdr
1 Comment
 
LVL 18

Accepted Solution

by:
Elvio Lujan earned 1000 total points
ID: 16511262
registerstartupscript("ss","<script>window.close();</script>")
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question