Click here to Skip to main content
16,014,294 members
Home / Discussions / Web Development
   

Web Development

 
GeneralUrgent! how to keep selection for radio or select groups Pin
chq1230-Jul-02 20:03
chq1230-Jul-02 20:03 
GeneralRe: Urgent! how to keep selection for radio or select groups Pin
chq121-Aug-02 6:37
chq121-Aug-02 6:37 
GeneralJoining text strings in ASP Pin
Anonymous30-Jul-02 17:59
Anonymous30-Jul-02 17:59 
GeneralRe: Joining text strings in ASP Pin
Bullschmidt30-Jul-02 21:17
Bullschmidt30-Jul-02 21:17 
GeneralDisplay a message box in an ASP.NET page Pin
Naresh Karamchetty30-Jul-02 10:55
Naresh Karamchetty30-Jul-02 10:55 
GeneralRe: Display a message box in an ASP.NET page Pin
Paul Watson30-Jul-02 12:59
sitebuilderPaul Watson30-Jul-02 12:59 
GeneralEnd Application Pin
Mazdak30-Jul-02 8:44
Mazdak30-Jul-02 8:44 
GeneralRe: End Application Pin
Paul Watson30-Jul-02 12:51
sitebuilderPaul Watson30-Jul-02 12:51 
Mazdak wrote:
I have an ASP.NET application,I want to do something when user close the Internet explorer or leave my site.Where should I do it?

There is no fool-proof way and definitley nothing as reliable as you can do in Windows apps.

BUT there is an unload event in HTML.

<body onunload="alert('Where are you going sucker?');">


I must stress that it is not foolproof. It does not always fire and there are ways the user can supress it (a lot of pron sites use this technique to stop you leaving their site, so a lot of pop-up buster software kills the onunload event.)


I also dimly am aware of a "IsConnected" method in ASP (probably ported over to ASP.NET) which you can call from the server side to do some trickery. Not sure about it though.

regards,
Paul Watson
Bluegrass
Cape Town, South Africa

The greatest thing you'll ever learn is just to love, and to be loved in return - Moulin Rouge

Alison Pentland wrote:
I now have an image of you in front of the mirror in the morning, wearing your knickers, socks and shoes trying to decided if they match!
GeneralRe: End Application Pin
Mazdak30-Jul-02 20:35
Mazdak30-Jul-02 20:35 
GeneralRe: End Application Pin
Chris Maunder31-Jul-02 14:25
cofounderChris Maunder31-Jul-02 14:25 
GeneralFile permissions Pin
Todd Smith30-Jul-02 8:21
Todd Smith30-Jul-02 8:21 
GeneralRe: File permissions Pin
Mazdak30-Jul-02 8:46
Mazdak30-Jul-02 8:46 
QuestionRemote Scripting Hosed by JRE International? Pin
DVryce30-Jul-02 5:48
DVryce30-Jul-02 5:48 
AnswerRe: Remote Scripting Hosed by JRE International? Pin
Jello30-Jul-02 22:27
Jello30-Jul-02 22:27 
GeneralApache and ASP.NET Pin
Kevin McFarlane30-Jul-02 0:04
Kevin McFarlane30-Jul-02 0:04 
QuestionHow to create address book? Pin
mizz-isLa29-Jul-02 21:25
sussmizz-isLa29-Jul-02 21:25 
AnswerRe: How to create address book? Pin
Nick Parker30-Jul-02 17:25
protectorNick Parker30-Jul-02 17:25 
GeneralHtmlInputFile InputStream woes Pin
29-Jul-02 13:44
suss29-Jul-02 13:44 
GeneralRe: HtmlInputFile InputStream woes Pin
stephen woolhead30-Jul-02 13:14
stephen woolhead30-Jul-02 13:14 
GeneralOld version of files "cached" into memory Pin
Chris LaQuerre29-Jul-02 4:02
Chris LaQuerre29-Jul-02 4:02 
GeneralRe: Old version of files "cached" into memory Pin
Alexandru Savescu29-Jul-02 5:29
Alexandru Savescu29-Jul-02 5:29 
GeneralRe: Old version of files "cached" into memory Pin
Chris LaQuerre29-Jul-02 7:02
Chris LaQuerre29-Jul-02 7:02 
GeneralProblems with layers in Netscape 4 Pin
Hitu28-Jul-02 21:13
Hitu28-Jul-02 21:13 
GeneralRe: Problems with layers in Netscape 4 Pin
Paul Watson28-Jul-02 21:25
sitebuilderPaul Watson28-Jul-02 21:25 
GeneralRe: Problems with layers in Netscape 4 Pin
Hitu28-Jul-02 22:58
Hitu28-Jul-02 22:58 

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.