🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.aspdotnet.components.using
3 messages
3 total messages Started by Man Of The Delphi Sat, 13 May 2006 10:01
disposed event
#171
Author: Man Of The Delphi
Date: Sat, 13 May 2006 10:01
17 lines
1271 bytes
Hi,
I'm new asp.net with delphi. now I'm learning events.
I don't know how i can use disposed event

I wrote following code on button dispose event to test this even, but 
nothing's happend.

procedure TWebForm3.Button1_Disposed(sender: System.Object; e: 
System.EventArgs);
begin
    Response.Write('Hello');

end;

i will be very glad if someone explain and get an example about this event.

thanx
Re: disposed event
#172
Author: Nick Hodges [TeamB]
Date: Sat, 13 May 2006 15:23
15 lines
1207 bytes
Man Of The Delphi wrote:

> i will be very glad if someone explain and get an example about this
> event.

Writing to the Response while the page is being disposed won't work.

The OnDispose event is generally used to do any cleanup of resources
allocated.  I'd say the use of the OnDispose event of a Button would be
/very/ rare.

-- 
Nick Hodges -- TeamB
Dunn Solutions Group -- http://www.dunnsolutions.com
Read my Blog -- http://www.lemanix.com/nickblog
Re: disposed event
#173
Author: Man Of The Delphi
Date: Sat, 13 May 2006 17:39
1 lines
1042 bytes
thank  you very much 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads