Handles clause requires a WithEvents variable defined in the containing type or one of its base types

前端 未结 8 1996
旧巷少年郎
旧巷少年郎 2021-01-04 03:15

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

8条回答
  •  说谎
    说谎 (楼主)
    2021-01-04 03:20

    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

提交回复
热议问题