title: Eventhandling in ascx usercontrols
body: <p>What is best practises for communicating events from a usercontrol to parent control/page i want to do something similar to this:</p>
  
  <pre><code>MyPage.aspx:
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceholder" runat="server"&gt;
    &lt;uc1:MyUserControl ID="MyUserControl1" runat="server" 
       OnSomeEvent="MyUserControl_OnSomeEvent" /&gt;
  
  MyUserControl.ascx.cs:
  public partial class MyUserControl: UserControl
  {
      public event EventHandler SomeEvent;
  ....
     private void OnSomething()
      {
          if (SomeEvent!= null)
              SomeEvent(this, EventArgs.Empty);
      }
  </code></pre>
  
  <p>Question is what is best practise?</p>