Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

onclose problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
marko - 19 Aug 2007 08:47 GMT
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
Peter Bromberg [C# MVP] - 20 Aug 2007 01:56 GMT
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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.