Heyy . . I'm making a community site, and each person's profile can have a number of pictures.
When editing a profile, there's a section for pictures, and each picture is represented by a user control that displays the image, the caption, and a "delete photo" button.
Say someone clicks the "delete photo" button --- I want to capture that event in the containing page. I've seen references to "RaiseBubbleEvent()" which seems like the right idea, but I'm not sure how that will work.
The problem I envision is that 1) I don't know what the parent object is - is it the placeholder? 'Cause if it is, the placeholder doesn't seem to have many events associated with it. 2) how do I determine which user control fired the event? Should that be specified in the EventArgs? Does a control that's added dynamically to a placeholder know it's own place in the placeholder's controls collection? I ask because, if someone deletes a photo, I might as well remove the associated control from the placeholder, but I'm not sure how to determine its position in the collection.