see below: I tried this code in the user control and web form, and still
not working. does anyone know what is missing? seems like a simple test can
verify what I am doing wrong.

please help!

bev


"Phil Weber" <pweber@nospam.fawcette.com> wrote:
> > I have a user control, with server control Buttons. When the
> > user clicks on these buttons, I want a clicked event to occur
> > on the Web Form on which the user control is registered.

>
>Bev: Try this...
>
> ' -- User Control
> Public Event Click(ByVal sender As Object, ByVal e As EventArgs)
> Protected WithEvents btnSave As System.Web.UI.WebControls.Button
>
> Private Sub btnSave_Click(ByVal sender As Object, _
> ByVal e As System.EventArgs) Handles btnSave.Click
> RaiseEvent Click(sender, e)
> End Sub
>
> ' -- Web Form
> Protected WithEvents btnSave As MyUserControl
> Private Sub btnSave_Click(ByVal sender As Object, _
> ByVal e As System.EventArgs) Handles btnSave.Click
> ' Your Click event code here
> End Sub
>
>---
>Phil Weber
>
>