asp.net: send an object's event from a UserControl to its Parent
问题 I have a User class with functions to Login() and Logout() and GetData() . There's a UserChanged event, it fires when either of these functions are called. I have UserControls on my Default.aspx (they're added dynamically). I have a UserControl named Login.ascx. It provides the functionality to use the User class: you can Login / Logout here. I have an ****EventHandler* for **UserChanged***** (if I don't have one, it will fail with a object not found exception). I need to alert the other