Event fired by User Control to the main window (form)

Discussion in 'ASP .Net' started by Samuel, Mar 26, 2009.

  1. Samuel

    Samuel Guest

    Hi

    I need an event to notify the main window when the user clicks on a button
    in the User Control.

    Thank you in advance,
    Samuel
     
    Samuel, Mar 26, 2009
    #1
    1. Advertising

  2. Samuel

    Niall Guest

    Hi Samuel,

    You can create a public event in your usercontrol and wire up a function in
    your main window to handle the event when raised from your usercontrol.

    Something like this...

    http://www.velocityreviews.com/foru...e-user-control-events-in-the-parent-page.html

    Niall

    "Samuel" <> wrote in message
    news:uEC%...
    > Hi
    >
    > I need an event to notify the main window when the user clicks on a button
    > in the User Control.
    >
    > Thank you in advance,
    > Samuel
    >
     
    Niall, Mar 31, 2009
    #2
    1. Advertising

  3. Samuel

    Samuel Guest

    thank you Niall.

    It is now working


    "Niall" <> wrote in message
    news:...
    > Hi Samuel,
    >
    > You can create a public event in your usercontrol and wire up a function
    > in your main window to handle the event when raised from your usercontrol.
    >
    > Something like this...
    >
    > http://www.velocityreviews.com/foru...e-user-control-events-in-the-parent-page.html
    >
    > Niall
    >
    > "Samuel" <> wrote in message
    > news:uEC%...
    >> Hi
    >>
    >> I need an event to notify the main window when the user clicks on a
    >> button in the User Control.
    >>
    >> Thank you in advance,
    >> Samuel
    >>

    >
    >
     
    Samuel, Apr 5, 2009
    #3
    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. Yan-Hong Huang[MSFT]
    Replies:
    6
    Views:
    677
    Yan-Hong Huang[MSFT]
    Jul 17, 2003
  2. Nick Lewis
    Replies:
    1
    Views:
    434
    Gary McCormack
    Aug 1, 2003
  3. Thomas Ekegren

    Page Load fired 3 times Web user control is embedded in a custom control

    Thomas Ekegren, Sep 3, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    228
    Thomas Ekegren
    Sep 3, 2003
  4. Fabrizio
    Replies:
    5
    Views:
    239
    Alessandro Zifiglio
    Feb 24, 2004
  5. Robert Oschler
    Replies:
    1
    Views:
    392
Loading...

Share This Page