title: creating and listening for events
body: <p>Ok, after fiddling around with this for a good 2 days, I've finally come to the conclusion that I do not undertand events at all.</p>
  
  <p>Here is what I am trying to do, followed by my code:</p>
  
  <p>I have a button in my usercontrol, and when clicked, I want to update a label in my .aspx page.  So I created an event handler in my user control, and I am trying
  to listen for that in my page.  But it is not working at all and I was hoping someone could enlighten me.</p>
  
  <p>User Control:</p>
  
  <pre><code>Public Custom Event handleButtonEvent As EventHandler
  
      AddHandler(ByVal value As EventHandler)
          AddHandler btnEventCall.Click, AddressOf Me.doStuff
      End AddHandler
  
      RemoveHandler(ByVal value As EventHandler)
          RemoveHandler btnEventCall.Click, AddressOf Me.doStuff
      End RemoveHandler
  
      RaiseEvent (ByVal sender As Object, ByVal e As System.EventArgs)
      End RaiseEvent
  
  End Event
  
  Protected Sub btnEventCall_Click(sender As Object, e As EventArgs) Handles btnEventCall.Click
  
  End Sub
  
  Protected Sub doStuff()
      Response.Write("do stuff")   'dont really need this
  End Sub
  </code></pre>
  
  <p>.aspx page:</p>
  
  <pre><code>Protected Sub control_event(ByVal sender As Object, ByVal e As EventArgs) Handles test1a.handleButtonEvent
  updateLabel()
  End Sub
  
  
  private sub updateLabel()
      lblUpdate.Text="works!"
  end sub
  </code></pre>
  
  <p>Thanks!</p>