|
|
|
start date: Sun, 19 Aug 2007 10:47:56 +0300,
posted on: microsoft.public.dotnet.framework.aspnet
back
| Thread Index |
|
1
marko
|
|
2
Peter Bromberg [C# MVP]
|
|
3
marko
|
|
4
Mark Rae [MVP]
|
onclose problem
hi to all
I want to catch onclose time the browser.
onunload or unbeforeunload events uselessness,
maybe with open a another window, but this window catch to popup blocker.
I want to find out a way to do.
Regards
Date:Sun, 19 Aug 2007 10:47:56 +0300
Author:
|
RE: onclose problem
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
"marko" wrote:
> hi to all
> I want to catch onclose time the browser.
> onunload or unbeforeunload events uselessness,
> maybe with open a another window, but this window catch to popup blocker.
> I want to find out a way to do.
>
> Regards
>
>
>
Date:Sun, 19 Aug 2007 17:56:01 -0700
Author:
|
Re: onclose problem
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]" ,
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
> 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
>
>
>
> "marko" wrote:
>
>> hi to all
>> I want to catch onclose time the browser.
>> onunload or unbeforeunload events uselessness,
>> maybe with open a another window, but this window catch to popup blocker.
>> I want to find out a way to do.
>>
>> Regards
>>
>>
>>
Date:Mon, 20 Aug 2007 23:58:21 +0300
Author:
|
Re: onclose problem
"marko" wrote in message
news:eCIiUz24HHA.5160@TK2MSFTNGP05.phx.gbl...
> 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...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Date:Mon, 20 Aug 2007 23:15:19 +0100
Author:
|
|
|