Posted on: 3/18/2015 11:29:46 PM | Views : 896

Hello
I am getting the following Compilation error:
BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
It refers to this line in my aspx.vb file:
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click
I don't have a btnSend_Click or btnSend.Click in my aspx file. Instead, I have this:
 
<form id="contact" runat="server" action="contact.test.aspx" method="post"> <div class="form_settings"> <p><asp:Label ID="your_name" runat="server" cssClass="span" Type="Text" Text="Name"></asp:Label> <asp:TextBox ID="yourname" runat="server" CssClass="input" ...

Go to the complete details ...