ASP Window Close Automatically After Download using codebeind?

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?"
LVL 1
kvnsdrAsked:
Who is Participating?
 
Elvio Lujan.Net Senior DeveloperCommented:
registerstartupscript("ss","<script>window.close();</script>")
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.