You can use collection of delegate objects in your control to execute hosted
page method based on your dropdown list selection.
Private _delegateObject As System.Delegate
Private _delegateObjects As New Collection
....
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
_delegateObject = _delegateObjects(Me.DropDownList1.SelectedIndex + 1)
_delegateObject.DynamicInvoke()
End Sub
....
Setup delegate collection (addresoff <function>)in your hosted form and pass
it to the control.
Let me know if it works for you
--
Programmer
"Toty Santana" wrote:
I need to make a new user control; it will contain a button and a drop down
list.
Can I make the button click event handling editable by the user, like he can
specify the method that will handle this click event on the hosting page?