Click here to Skip to main content
15,917,320 members
Home / Discussions / C#
   

C#

 
GeneralThumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 4:27
Gambit_Sunob4-Aug-04 4:27 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 5:00
Nigel Savidge4-Aug-04 5:00 
GeneralRe: Thumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 5:18
Gambit_Sunob4-Aug-04 5:18 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 6:16
Nigel Savidge4-Aug-04 6:16 
GeneralRe: Thumbnail Speed Increase Pin
Nick Parker4-Aug-04 5:36
protectorNick Parker4-Aug-04 5:36 
GeneralWeb app not calling Application_End Pin
IrishSonic4-Aug-04 3:46
IrishSonic4-Aug-04 3:46 
GeneralRe: Web app not calling Application_End Pin
leppie4-Aug-04 4:05
leppie4-Aug-04 4:05 
GeneralRe: Web app not calling Application_End Pin
Heath Stewart4-Aug-04 5:20
protectorHeath Stewart4-Aug-04 5:20 
First of all, this question belong in the ASP.NET forum, but since it's a simple question I'll answer it here anyway.

The red X in IE (or any browser) does nothing on the server. HTTP is a client-request/server-response mechanism and only client-side scripting events would know that your browser is closing.

Also, if you read the documentation for ASP.NET (always a good thing), the Application_End handler executes when your ASP.NET web application is shutting down (as leppie tried to point out with little extra helpful information). Each client does not get a separate instance of a web application - that would be stupid (wouldn't scale well, among many other things). Each additional client gets a separate context (a thread), optionally with a session attached. If you want to store information per-client and clean it up, use the Session property found on many objects (like HttpContext, Page, et. al.) and handle clean-up in the Session_End handler in Global.asax. This still won't fire when a user closes the browser, however. It will fire when the session is destroyed. The default is in 30 minutes.

Please direct future questions to the appropriate forums. This is an ASP.NET related question - it doesn't matter if you wrote it in C# or not; C# is just one many languages that target and use the .NET Framework.

 

Microsoft MVP, Visual C#
My Articles
GeneralToday screen component Pin
memsharp4-Aug-04 2:10
memsharp4-Aug-04 2:10 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 4:19
protectorNick Parker4-Aug-04 4:19 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:12
protectorHeath Stewart4-Aug-04 5:12 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 5:42
protectorNick Parker4-Aug-04 5:42 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:14
protectorHeath Stewart4-Aug-04 5:14 
GeneralRe: Today screen component Pin
memsharp7-Aug-04 21:48
memsharp7-Aug-04 21:48 
Generaluninstall in pocket pc Pin
memsharp4-Aug-04 2:05
memsharp4-Aug-04 2:05 
GeneralRe: uninstall in pocket pc Pin
Heath Stewart4-Aug-04 5:55
protectorHeath Stewart4-Aug-04 5:55 
GeneralHelp in pocket pc. Pin
memsharp4-Aug-04 2:01
memsharp4-Aug-04 2:01 
GeneralRe: ToolTip in Pocket PC Pin
exhaulted4-Aug-04 3:03
exhaulted4-Aug-04 3:03 
GeneralRe: ToolTip in Pocket PC Pin
leppie4-Aug-04 3:43
leppie4-Aug-04 3:43 
Questionopening a file with internet explorer from C# code? Pin
misterbear4-Aug-04 1:16
misterbear4-Aug-04 1:16 
AnswerRe: opening a file with internet explorer from C# code? Pin
CWIZO4-Aug-04 3:03
CWIZO4-Aug-04 3:03 
GeneralRe: opening a file with internet explorer from C# code? Pin
misterbear4-Aug-04 4:05
misterbear4-Aug-04 4:05 
GeneralRe: opening a file with internet explorer from C# code? Pin
CWIZO4-Aug-04 4:57
CWIZO4-Aug-04 4:57 
AnswerRe: opening a file with internet explorer from C# code? Pin
Member 11737604-Aug-04 3:45
Member 11737604-Aug-04 3:45 
AnswerRe: opening a file with internet explorer from C# code? Pin
Heath Stewart4-Aug-04 6:03
protectorHeath Stewart4-Aug-04 6:03 

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.