Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 28th, 2004, 06:23 PM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to admin@martine.cz Send a message via MSN to admin@martine.cz
Default rise event from panel

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
 
Old January 29th, 2004, 05:24 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.
 
Old January 30th, 2004, 06:04 AM
Registered User
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to admin@martine.cz Send a message via MSN to admin@martine.cz
Default

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
 
Old January 30th, 2004, 03:49 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Panel.visible shai505 C# 1 April 25th, 2006 05:10 AM
ViewState problem when adding a panel to a panel koekie17 C# 3 February 20th, 2006 09:17 AM
rise speed for "sp_Forums_GetTopicsByPage" chinahyf BOOK: ASP.NET Website Programming Problem-Design-Solution 2 December 20th, 2005 02:44 AM
Panel AutoScroll Dave Doknjas Pro VB.NET 2002/2003 2 August 27th, 2003 03:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.