Unfortunately, no. You have to work with client side script to close on the
client.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************
"Ryan Ternier" <rt******@icompasstech.com.spamproof> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a pop-up window that I'm closing when a user presses a submit
button. The page we're creating is not supposed to use any .NET controls.
All the HTML is output through a single string to the page, using
<% = body() &>
When it comes time to close, i'm using this simple snippet:
Response.Write("<script>window.close();</script>")
Response.Flush()
Which flushes the script, and runs it right away, which is what we want,
but it seems... messy. Is there another trick to accomplish this? Can you
make a direct call to othe unload event?