I get the error
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
in the following co
I had this error on a handler function for an ASP button on vb.net. Solved by adding
runat="server"
to the enclosing form tag