You could open another window, with the ASPX page that executes the
server-side code and then closes itself, but once that first window closes,
it doesn't post back to the server.

HTH,

Kevin Spencer
Microsoft FrontPage MVP
Internet Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of Little things.

"Onur Bozkurt" <onur.bozkurt@softhome.net> wrote in message
news:%23sZ2rh$ODHA.3236@TK2MSFTNGP10.phx.gbl...
> I want to prompt to the user if he/she really wants to close the window,
and
> if he/she is sure, I want to sign out the user, by server-side code.
> Is there any way to do this..?
>
>