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 99:     End Sub
Line 100:
Line 101:    Protected Sub btnAddToCart_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnAddtoCart.Click
Line 102:        Dim ItemsSlected As Integer = 0
Line 103:        For Each item As RepeaterItem In Me.rptProducts.Items

Source File: B:\EgerProducts\sitefiles\Details-1.aspx.vb    Line: 101






Version Information: Microsoft .NET Framework Version:2.0.50727.8813; ASP.NET Version:2.0.50727.8951