Home All Groups Group Topic Archive Search About
Author
13 Jun 2005 4:27 PM
Forch
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

Author
13 Jun 2005 4:46 PM
Brock Allen
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



Show quoteHide quote
> 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
>