Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.

Source Error:


Line 11:     End Sub
Line 12: 
Line 13:     Protected Sub Button21_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Btncorrection.Click
Line 14:         Response.Redirect("REGNu.aspx")
Line 15:     End Sub

Source File: C:\GKVREP\ICR_Regn.aspx.vb    Line: 13






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0