Click here to Skip to main content
16,004,778 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: web page closing detection Pin
Parwej Ahamad27-Sep-07 22:44
professionalParwej Ahamad27-Sep-07 22:44 
GeneralRe: web page closing detection Pin
Piyush Vardhan Singh27-Sep-07 20:52
Piyush Vardhan Singh27-Sep-07 20:52 
GeneralRe: web page closing detection Pin
Sonia Gupta27-Sep-07 21:07
Sonia Gupta27-Sep-07 21:07 
GeneralRe: web page closing detection Pin
Piyush Vardhan Singh27-Sep-07 21:25
Piyush Vardhan Singh27-Sep-07 21:25 
GeneralRe: web page closing detection Pin
Sonia Gupta27-Sep-07 21:40
Sonia Gupta27-Sep-07 21:40 
GeneralRe: web page closing detection Pin
Piyush Vardhan Singh27-Sep-07 21:46
Piyush Vardhan Singh27-Sep-07 21:46 
AnswerRe: web page closing detection Pin
Christian Graus27-Sep-07 20:22
protectorChristian Graus27-Sep-07 20:22 
AnswerRe: web page closing detection Pin
Guffa27-Sep-07 20:38
Guffa27-Sep-07 20:38 
No, you can't detect if the window is being closed.

What you can do is to use the onunload event to detect when the user leaves the page. This is triggered when the window is closed, when the user navigates elsewhere and when the user enters an url directly. You have to keep track of all navigation on the page to be able to determine if the user is navigating to a different page or not. You can't, howerer, determine if the window is being closed or if the user entered an url directly to leave the page.

---
single minded; short sighted; long gone;

AnswerRe: web page closing detection Pin
Imran Khan Pathan27-Sep-07 21:47
Imran Khan Pathan27-Sep-07 21:47 
GeneralRe: web page closing detection Pin
Sonia Gupta27-Sep-07 21:56
Sonia Gupta27-Sep-07 21:56 
GeneralRe: web page closing detection Pin
Imran Khan Pathan27-Sep-07 23:03
Imran Khan Pathan27-Sep-07 23:03 
GeneralRe: web page closing detection Pin
Piyush Vardhan Singh28-Sep-07 0:34
Piyush Vardhan Singh28-Sep-07 0:34 
QuestionDataset Table Question !! Pin
-- Abhi --27-Sep-07 19:31
-- Abhi --27-Sep-07 19:31 
AnswerRe: Dataset Table Question !! Pin
Sonia Gupta27-Sep-07 19:38
Sonia Gupta27-Sep-07 19:38 
GeneralRe: Dataset Table Question !! Pin
-- Abhi --27-Sep-07 19:42
-- Abhi --27-Sep-07 19:42 
GeneralRe: Dataset Table Question !! Pin
N a v a n e e t h27-Sep-07 19:51
N a v a n e e t h27-Sep-07 19:51 
GeneralRe: Dataset Table Question !! Pin
Paddy Boyd27-Sep-07 22:44
Paddy Boyd27-Sep-07 22:44 
Questionconversion error Pin
Sonia Gupta27-Sep-07 18:43
Sonia Gupta27-Sep-07 18:43 
AnswerRe: conversion error Pin
Christian Graus27-Sep-07 19:01
protectorChristian Graus27-Sep-07 19:01 
GeneralRe: conversion error Pin
Sonia Gupta27-Sep-07 19:12
Sonia Gupta27-Sep-07 19:12 
QuestionProblem with WYSIWYG Editor Pin
yadlaprasad27-Sep-07 18:33
yadlaprasad27-Sep-07 18:33 
AnswerRe: Problem with WYSIWYG Editor Pin
Christian Graus27-Sep-07 19:02
protectorChristian Graus27-Sep-07 19:02 
AnswerRe: Problem with WYSIWYG Editor Pin
Malcolm Smart27-Sep-07 20:41
Malcolm Smart27-Sep-07 20:41 
Questionbutton disabling Pin
Sonia Gupta27-Sep-07 18:25
Sonia Gupta27-Sep-07 18:25 
AnswerRe: button disabling Pin
Sivan.G27-Sep-07 18:45
Sivan.G27-Sep-07 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.