I am getting an error message on this line of script (attached) in my aspx.vb file:
I know the 'SubmitButton_Click' part is incorrect or insufficient and the error message I get in my browser is:
Protected Sub SubmitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SubmitButton_Click.Click.
This relates to this line in my normal aspx file:
Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
I am trying to understand the article here: WithEvents and the Handles Clause
<asp:Button ID="SubmitButton" runat="server" OnClick="SubmitButton_Click" Text="Register" CssClass="btn btn-default" />
but it's not making too much sense!
Any help would be appreciated.