C
Charles A. Lackman
Hello,
I have a UserControl that I am added to a page. In the User Control I
created a Public Event:
Public Event DoDelete (ByVal TheIndex as integer)
In a button click of the control I raise the Event:
RaiseEvent DoDelete(txtIndex.text)
I am having a difficult time getting the event to function inside the aspx
page the control is in. Here is how I am trying to accomplish this:
Dim MyControl as UserControl
MyControl = LoadControl("OrderControl.ascx")
Addhandler MyControl.DoDelete, AddressOf MyDelete
When the event in the control fires it does not go to MyDelete in the Aspx
page.
Any Suggestions will be greatly appreciated.
Thanks,
Chuck
I have a UserControl that I am added to a page. In the User Control I
created a Public Event:
Public Event DoDelete (ByVal TheIndex as integer)
In a button click of the control I raise the Event:
RaiseEvent DoDelete(txtIndex.text)
I am having a difficult time getting the event to function inside the aspx
page the control is in. Here is how I am trying to accomplish this:
Dim MyControl as UserControl
MyControl = LoadControl("OrderControl.ascx")
Addhandler MyControl.DoDelete, AddressOf MyDelete
When the event in the control fires it does not go to MyDelete in the Aspx
page.
Any Suggestions will be greatly appreciated.
Thanks,
Chuck