title: Handles clause requires a WithEvents variable defined in the containing type or one of its base types
body: <p>I get the error </p>
  
  <pre><code>Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
  </code></pre>
  
  <p>in the following code..</p>
  
  <pre><code>Public Sub selCurrentManuf_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) _
      Handles selCurrentManuf.SelectedIndexChanged
  
      End Sub
  </code></pre>
  
  <p>The drop list to go with it is the following...</p>
  
  <pre><code>&lt;asp:DropDownList  
     OnSelectedIndexChanged="selCurrentManuf_SelectedIndexChanged" 
     selectedvalue='&lt;%#Container.DataItem("c1_manufidcurrent")%&gt;' 
      ID="selCurrentManuf" 
      Runat="Server" 
      DataTextField="c4_Desc" 
      DataValueField="c4_manufid"
      DataSource="&lt;%# GetCurrentManuf() %&gt;" 
      autopostback="true" 
   &gt;&lt;/asp:DropDownList&gt;
  </code></pre>