Author: shearne | Posted on: 8/7/2008 5:44:09 AM | Views : 490

 Hi,
 
I'm receiving the following errors when building;
 
error BC30506: Handles clause requires a WithEvents variable defined in the containing type or one of its base types.
error BC30451: Name 'LabelNewProdCount' is not declared.

 My code;
 
  Protected Sub SqlDataSource3_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs) Handles SqlDataSource3.Selected
LabelNewProdCount.Text = String.Format("No. of new Products: {0}", e.AffectedRows)
End Sub 
 I've had a look around to try and solve this and so I tried the foll ...

Go to the complete details ...