Whats wrong with UserDataSource.LoadForCriteria?
Posted: Mon Mar 01, 2010 3:37 pm
Im trying to make a report that lists all users that registered in a given time period.
When I use the UserDataSource.LoadForCriteria method to get the users, it just takes forever and then times out.
Im trying it like this:
Is the method not made for this purpose? Is there another way to do it?
We have 1100 users in the db.
When I use the UserDataSource.LoadForCriteria method to get the users, it just takes forever and then times out.
Im trying it like this:
Code: Select all
UserCollection users=UserDataSource.LoadForCriteria("CreateDate > ' "+fromDate.ToString("M/d/y")+" ' AND CreateDate < ' "+toDate.ToString("M/d/y")+" ' ");
foreach (User _user in users){
We have 1100 users in the db.