Event Handling Question

Discussion in 'ASP .Net Web Controls' started by Forch, Jun 13, 2005.

  1. Forch

    Forch Guest

    Hi guys,

    I have an ASPX page with one custom control, and the custom control has a
    button in it.

    When the user clicks on the button in the custom control, I would like to
    call a method in the page that is parenting the custom control.

    Is there a way I can do this? Is there a way for the parent to detect that
    the button has been clicked?

    Thanks!

    Forch
    Forch, Jun 13, 2005
    #1
    1. Advertising

  2. Forch

    Brock Allen Guest

    You should make your custom control raise its own custom event when it detects
    the button was clicked. Here's a sample:

    http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx#exposingevts

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Hi guys,
    >
    > I have an ASPX page with one custom control, and the custom control
    > has a button in it.
    >
    > When the user clicks on the button in the custom control, I would like
    > to call a method in the page that is parenting the custom control.
    >
    > Is there a way I can do this? Is there a way for the parent to detect
    > that the button has been clicked?
    >
    > Thanks!
    >
    > Forch
    >
    Brock Allen, Jun 13, 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. S. Justin Gengo

    Re: event handling question

    S. Justin Gengo, Aug 20, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    403
    James Zhuo
    Aug 21, 2003
  2. Bloody Viking

    JSF event-handling question

    Bloody Viking, Feb 1, 2008, in forum: Java
    Replies:
    0
    Views:
    409
    Bloody Viking
    Feb 1, 2008
  3. Mark Tarver
    Replies:
    22
    Views:
    1,302
    J Kenneth King
    Apr 26, 2009
  4. Peter
    Replies:
    34
    Views:
    1,936
    James Kanze
    Oct 17, 2009
  5. Louis

    Event Handling Question

    Louis, Aug 6, 2007, in forum: Javascript
    Replies:
    9
    Views:
    103
    korisu
    Sep 2, 2007
Loading...

Share This Page