Please can anyone help me with a annoying ASP.NET error? Next ... I have a button:
<asp:Button ID="cadastra" CssClass="btn btn-success btn-lg" runat="server" Text="Cadastrar Cliente" onclick="cadastra_Click1" />
And I have the method cadastra_Click1
protected void cadastra_Click1(object sender, EventArgs e)
{
Response.Write("<script>alert('clockado');</script>");
}
When I try to run the code the compiler brings me the following error:
CS1061: 'ASP.ascx_address' does not contain a definition for 'cadastra_Click1' and no 'cadastra_Click1' extension method accepts that a first argument of type 'ASP.class_aspx' is found (you are not using a guideline or reference assembly?)
I do not know what else to do.