It's not ASP code, but JavaScript.
window.close();
But here's the problem, if you're closing a browser window the user opened, they will get a popup saying "This webpage is attempting to close your browser, do you want to?" (or along those lines) - this is a security feature. Now, if you create the window in JavaScript, you can close it without getting a popup box.