473,386 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

call Application End method automatically when i close browsers tab dirtectly..

When I close the web browser's tab directly the application (like application["Status"]=null); object should be null automatically...
Dec 4 '13 #1
1 1576
Frinavale
9,735 Expert Mod 8TB
Consider making an Ajax call to a page on the server (called something like "Logout" or "EndApplication" and does the clean up that you need to do) during the window.onBeforeUnload event. This event is raised every time the page is unloaded (ie: a full page server request is done) so you will have to indicate when not to call the page in the unload event. Also, this event is not supported by all browsers so take extra steps in your server-side code to properly clean up in an applicable place (like in your Global.asax file when session times out or something).


-Frinny
Dec 4 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: jrefactors | last post by:
>From the main page, there are lots of links to open new window. i.e. <a href="#" onClick="window.open('child1.html')">Open Child Window</a> If I close the main page, I want to close all child...
4
by: Mariame | last post by:
Hi Everyone i have a web page that i write in it the connection string of the database & i declare the session i want when the user open any page & doesent start with the index page , i dont...
1
by: Ivan Weiss | last post by:
I am wondering what the differences are between using the Application.Exit() and Me.Close() (Me.Close on the main mdiForm in my app) to close and exit my application. Are there benefits to using...
3
by: Academic | last post by:
If I do the following: System.Windows.Forms.Cursor.Current = Cursors.WaitCursor Do I need to reset the cursor or will that happen automatically when I leave the subroutine?
10
by: schneider | last post by:
I'm looking for a way to programaticly call a method from a different object and associate the two objects at runtime. Example: Object A exist and is unknow, I want object B to be able to call a...
9
by: Steve Richter | last post by:
in a generic class, can I code the class so that I can call a static method of the generic class T? In the ConvertFrom method of the generic TypeConvert class I want to write, I have a call to...
1
by: ravikumar2007 | last post by:
I am working with .NET 3.5 framework within an WPF application. I have a windows application where for a textbox, I have defined the lost focus event. I need to call the Focus() method of any other...
3
by: senthilkumarb | last post by:
How can i call a function automatically when the server started ?
0
by: PriyaPavithra | last post by:
Hi, I have created java web application. I want to call the setName() method in java application. how is call web method in application?. package sv; import javax.jws.WebMethod; import...
3
by: nikolazl | last post by:
Hi people.I have a problem and I will try to describe it.I have 5 forms in my Visual Basic application.First one is startup and other 4 forms are connected with first one.Also I have TextBoxes on all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.