Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to recall add event from an Event handler??

Reply
Thread Tools

How to recall add event from an Event handler??

 
 
RC
Guest
Posts: n/a
 
      01-06-2005
page.Load += new EventHandler(this.Page_Load);
page.Load += new EventHandler(this.Page_Process);

how to runtime recall both Page_Load and Page Process from page.Load
eventhandler without calling them directly?


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      01-06-2005
"RC" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> page.Load += new EventHandler(this.Page_Load);
> page.Load += new EventHandler(this.Page_Process);
>
> how to runtime recall both Page_Load and Page Process from page.Load
> eventhandler without calling them directly?


Those methods are event handlers, and should only be called by a raised
event. If you want to execute what's inside of those methods, you should
break out the insides into separate subroutines, and call those routines
from wherever you like.

John Saunders


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Recall: How to add a library path to pythonpath ? Barak, Ron Python 0 03-16-2010 11:56 AM
URL recall BobB Firefox 2 06-25-2005 08:45 AM
Attention MCNGP Chycks: Important recall =?iso-8859-1?Q?Frisbee=AE?= MCSE 10 12-16-2004 11:05 PM
Segway recall Sentient Fluid Computer Support 8 09-28-2003 07:46 PM



Advertisments