473,387 Members | 1,501 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,387 software developers and data experts.

is there any Page OnClose function ?

in normal Window form programming, there's something like form_unload function.
but in asp.net the Page_Unload function is obviously not serving the same
purpose.

Do you guys know how to get the Page onclose() event in asp.net fired when i
clicked another page ??

thanks
Nov 19 '05 #1
1 2108
"Maverick" <Ma******@discussions.microsoft.com> ¦b¶l¥ó
news:13**********************************@microsof t.com ¤¤¼¶¼g...
in normal Window form programming, there's something like form_unload function. but in asp.net the Page_Unload function is obviously not serving the same
purpose.
It's not possible to have onclose event because it's not possible to have a
postback when a webpage is closing.
Do you guys know how to get the Page onclose() event in asp.net fired when i clicked another page ??

I believe the "onblur" event will serve your purpose, but you have to use
client-side scripting(vbscript/javascript) to invoke a postback(most
commonly by clicking a multifunctional button) because most DOM events do
not generate a postback as they occured.
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: NotGiven | last post by:
I am guessing I would hold a variable of when it's opened, then in the script that runs when the page is offloaded, I coudl calcualte it. How do you store a time variable? How do you calculate...
2
by: Øyvind Isaksen | last post by:
Hi! When a user enter my page, a cookie is created. When the user leaves the page (closeing the page), the cookie needs to be deleted. How can I call an ASP-script when the user close/exit...
6
by: Mel | last post by:
when the user goes to my site, and them closes the window, using "X" window decoration, i would like to log him out is it possible to add an onClose to current window ? is so how ? sample code...
2
by: amywolfie | last post by:
I have a series of 100 select queries (each represents a separate business rule). Each is run after a rule is tested. OnClose of each query, I need to run a report with only the results of...
3
by: brewman | last post by:
How can you tell if an onClosing event were raised as a result of the user clicking on the close control vs a system shutdown? TIA
3
by: Hector Martinez | last post by:
I have a ASP.NET web app, and I can't find and event like "OnClose()" . But I need to know when the page is closed because I have to much to do when this happen... Thanx in Advantage....
6
by: Luke Matuszewski | last post by:
As in topic... has anyone used it ? I tried to use it but i guess i failed... here is a code: <html> <head> <title></title> <script type="text/javascript"> function closedWin() {...
1
by: bimeldip | last post by:
hi, I have a problem. I have created an index.php file that houses dhtml codes to pop up virtual windows. This is the codes for it: <!-- 1) DHTML Window Example 1: --> <script...
10
by: kpfunf | last post by:
I have an OnClose function that opens a switchboard (SwitchOpen). This function is placed in numerous objects' (reports and forms) OnClose event, and works great. However, a very annoying...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.