Unload

Is there any way to call a asp function on unload(When someone closes the page?

View Replies


ADVERTISEMENT

Handling Unload Of Page

I have a page where user can enter data, which will be saved in the database. I want to handle the closing of window, by clicking on the 'X' of IE. The user should be Displayed a message asking him if he wants to save the data. If yes then submit the same page to save the data and then close the page, else close the page.

I tried to use the 'OnBeforeUnload' event but not able to submit the page while closing. if this can be done. Please send me links useful in this context.

View Replies View Related

Page Unload Event

I have 2 pages, when the browser window is closed and depending that the user has not already taken the survey and also that the user has not declined to take the survey, i will open a survey form for the user.

Now i have links on these pages also. I only want to show this survey if the page is closed and not when the user clicks on the links (as at this time current page unload event is called too). How i can accomplish this?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved