This can be achieved only by a javascript call window.close(). You can
either have a bit of javascript inside your .aspx file or emit this call
from code-behind.
If the current window was not created by script (that is, via
window.open()), close() method will display a prompt to the user. This is a
security measure.
Hope this helps.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.