Hi guys,
I have a LLBLGenProDatasource that is bound to a dropdownlist, and for the datasource i switched to design view and created two event handlers in VS2005. The idea is to create filters to limit the records returned to bind to my dropdownlist. Unfortunately, when i run the page i do not hit the breakpoints inside both event handlers. What could the issue be?
Here is the code:
protected void LLBLGenProDataSourceAdvertisers_PerformGetDbCount(object sender, PerformGetDbCountEventArgs e)
{
IPredicateExpression filter = new PredicateExpression();
if (filter.Count > 0)
{
filter.AddWithAnd(new FieldLikePredicate(AdvertiserFields.IsActive, "%" + 0 + "%"));
}
else
{
filter.Add(new FieldLikePredicate(AdvertiserFields.IsActive, "%" + 0 + "%"));
}
}
and
protected void LLBLGenProDataSourceAdvertisers_PerformSelect(object sender, PerformSelectEventArgs e)
{
IPredicateExpression filter = new PredicateExpression();
if (filter.Count > 0)
{
filter.AddWithAnd(new FieldLikePredicate(AdvertiserFields.IsActive, "%" + 0 + "%"));
}
else
{
filter.Add(new FieldLikePredicate(AdvertiserFields.IsActive, "%" + 0 + "%"));
}
}
This is LLBLGenPro v2.5 using Selfservicing mode and .NET 2.0 on Win XP Pro SP2, and Visual Studio 2005 Team System SP1.
Thanks,
Sithembewena Lloyd Dube