How to recall add event from an Event handler??

R

RC

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?
 
J

John Saunders

RC said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top