Marko,
Your post is really not related to ASP.NET, it is about client-side Browser
behavior, which has nothing to do with .NET, ASP.NET, or C# /VB.NET.
There are only a few such client-script / DOM browser events that you can
catch, and onUnload / onBeforeUnload are the two main ones. Therefore, your
(as you describe "useless") choices are limited. Perhaps if you took the time
to fully explain what your goal is, somebody can recommend a way to do it?
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com
> hi to all
> I want to catch onclose time the browser.
[quoted text clipped - 3 lines]
>
> Regards
marko - 20 Aug 2007 21:58 GMT
Hi Peter
thanks your answer,
I want to terminate asp.net session on browser close time.
There must be a way to do this.
Regards
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.yohohhoandabottleofrum.com>,
haber iletisinde þunlarý
yazdý:1731191F-8476-466B-BF5D-60877C454069@microsoft.com...
> Marko,
> Your post is really not related to ASP.NET, it is about client-side
[quoted text clipped - 20 lines]
>>
>> Regards
Mark Rae [MVP] - 20 Aug 2007 23:15 GMT
> I want to terminate asp.net session on browser close time.
> There must be a way to do this.
There isn't... Once the server has sent a response down to the client
browser, it has no further connection with that client browser until /
unless that client browser makes another request.
This is just the way it is because of the disconnected nature of the web...

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net