How to recall add event from an Event handler??

Discussion in 'ASP .Net Web Controls' started by RC, Jan 6, 2005.

  1. RC

    RC Guest

    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?
     
    RC, Jan 6, 2005
    #1
    1. Advertising

  2. "RC" <> wrote in message
    news:%...
    > 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
     
    John Saunders, Jan 6, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moonhk
    Replies:
    5
    Views:
    575
    moonhk
    Oct 11, 2006
  2. Maciej Gawinecki

    Understanding precision/recall graph

    Maciej Gawinecki, Oct 3, 2008, in forum: XML
    Replies:
    1
    Views:
    686
    Peter Flynn
    Oct 3, 2008
  3. Barak, Ron
    Replies:
    0
    Views:
    293
    Barak, Ron
    Nov 24, 2009
  4. Barak, Ron
    Replies:
    0
    Views:
    260
    Barak, Ron
    Mar 16, 2010
  5. Patrick Maupin

    Re: recall function definition from shell

    Patrick Maupin, May 18, 2010, in forum: Python
    Replies:
    5
    Views:
    595
    Terry Reedy
    May 19, 2010
Loading...

Share This Page