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.

Go to topic 9206

Return to index page 959
Return to index page 958
Return to index page 957
Return to index page 956
Return to index page 955
Return to index page 954
Return to index page 953
Return to index page 952
Return to index page 951
Return to index page 950