|
Subject:
|
rise event from panel
|
|
Posted By:
|
admin@martine.cz
|
Post Date:
|
1/28/2004 5:23:26 PM
|
Pleas help,
I trying rise event (RepItemCommand) from panel to user control. How I can make it ?
Aspx page: …… Sortiment = LoadControl("ascx/Sortiment.ascx") Sortiment.ID = "UCSortiment" Panel1.Controls.Add(Sortiment)
AddHandler RepItemCommand ??? ...
User Control: .... Sub RepItemCommand(ByVal Sender As Object, ByVal e As repeaterCommandEventArgs) ........... Thanks Martin
|
|
Reply By:
|
planoie
|
Reply Date:
|
1/29/2004 4:24:16 PM
|
You haven't told us what event the user control method has to be tied to.
The syntax for AddHandler usually looks like this:
AddHandler <control>.<event>, AddressOf <method>
I'm really not sure what you are trying to do with this. Please explain more, or post more of the relavant code.
Peter ------------------------------------------------------ Work smarter, not harder.
|
|
Reply By:
|
admin@martine.cz
|
Reply Date:
|
1/30/2004 5:04:14 AM
|
Ok,
in the UserControl I have a Repeater and I need rise the Repeater ItemCommand event from panel in aspx page where is UserControl load.
Martin
|
|
Reply By:
|
planoie
|
Reply Date:
|
1/30/2004 2:49:39 PM
|
You are going to need to implement some event bubbling. Take a look at this thread for details. Look about halfway down the thread for my post about bubbling.
Peter ------------------------------------------------------ Work smarter, not harder.
|