ASP.NET - Button not firing up code when pressed
Posted on 2011-10-01
I have something really weird going on here.
on a .aspx page I have the following code as a first line:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="cpanel3_cancel.aspx.vb" Inherits="cpanel3_cancel" %>
Then on that page, I have a button, as follows:
<asp:Button ID="Button2" runat="server" Text="Cancel Account" />
and on the file cpanel3_cancel.aspx.vb I have the following code:
Protected Sub Button2_Click(sender As Object, e As System.EventArgs) Handles Button2.Click
But when I click on Button2, nothing happens!