Sure, Response.Write("<script>window.close()</script>");
Note, that if the program is trying to close the main window, as opposed to
other windows opened from the main one, the browser will ask the user for
confirmation.
Eliyahu
"Jarod" <bl*****@NOSPAM.gazeta.pl> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
Hey
Is there any way to asp.net generate window.close() - javascript function
? I need to close user window if he doesn't have access to the page.
Jarod