[thelist] (asp.net) RaiseBubbleEvent?

Tab Alleman talleman at Lumpsum.com
Wed Feb 22 11:02:22 CST 2006


I got it... I needed to add an OnBubbleEvent handler in the parent object... seems like MS should have found a way to bypass this rather superfluous step.

> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Tab Alleman
> Sent: Wednesday, February 22, 2006 11:32 AM
> To: Evolt Thelist (E-mail)
> Subject: [thelist] (asp.net) RaiseBubbleEvent?
> 
> 
> I am trying to bubble the SelectedIndexChanged event from a 
> custom dropdownlist class.  I paraphrased the example in 
> MSDN, but it's not working... anybody see why?  Stepping 
> through the code shows that the OnSelectedIndexChanged sub 
> does get fired *in the custom class* when I change the 
> dropdownlist, but NOT in the parent object. 
> 
> The code for the class boils down to:
> 
> 
>     Public Class cls_ddlCaseStatus
>         Inherits System.Web.UI.WebControls.DropDownList
> 
>         Protected Overrides Sub OnSelectedIndexChanged(ByVal 
> e As EventArgs)
> 
>             MyBase.OnSelectedIndexChanged(e)
>             'Context.Response.Write("<br><br>ChildControl's 
> OnClick called.")
>             ' Bubble this event to parent.
>             RaiseBubbleEvent(Me, e)
> 
>         End Sub
>     End Class
> -- 
> 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
> 
> For unsubscribe and other options, including the Tip Harvester 
> and archives of thelist go to: http://lists.evolt.org 
> Workers of the Web, evolt ! 
> 



More information about the thelist mailing list