PDA

View Full Version : Event Bubbling - Run function on parent webform from user controls?


traxon
03-24-04, 01:31 PM
I have a webform with 3 PlaceHolders. Each PlaceHolders contains a single user control. On each of the user controls, there are some buttons. When you click a button on a user control, I need different user controls to be swapped into each of the placeholders on the web form.

How do I do this?? I've been playing with this for a long time and still haven't figured it out. From what I've read, I need to use "event bubbling", and I've found several examples using C#, but for some reason I can't seem to correctly convert them to VB! Here is one good article I just found that sounds just like what I'm trying to do:

www.odetocode.com/code/94.aspx.

If someone could either convert that article to VB.NET or help me accomplish exactly what I'm trying to do I'd REALLY appreciate it! I'm really stuck on this at work and I'm about to miss some important deadlines because of it! Thanks!