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. Advertisements

  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. Advertisements

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. Jose Suero
    Replies:
    2
    Views:
    9,802
    Jose Suero
    Dec 26, 2003
  2. Chris

    how to add an event handler ?

    Chris, May 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    477
    Patrick Delifer
    May 1, 2004
  3. Replies:
    1
    Views:
    951
    Damien
    Feb 22, 2007
  4. moonhk
    Replies:
    5
    Views:
    788
    moonhk
    Oct 11, 2006
  5. Maciej Gawinecki

    Understanding precision/recall graph

    Maciej Gawinecki, Oct 3, 2008, in forum: XML
    Replies:
    1
    Views:
    823
    Peter Flynn
    Oct 3, 2008
  6. Barak, Ron
    Replies:
    0
    Views:
    371
    Barak, Ron
    Nov 24, 2009
  7. Barak, Ron
    Replies:
    0
    Views:
    309
    Barak, Ron
    Mar 16, 2010
  8. Patrick Maupin

    Re: recall function definition from shell

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