Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!


I´m using a SearchDataSource to filter pages during a couple of criterias and a freetextsearch. If I finally binds the SearchDataSource to a grid or a repeater, the correct amount of hits shows. But, I want to put the result in to a PageDataCollection for some reasons. And if I use code like this:
IList list = SearchSource.GetList();
foreach (PageData p in list)
resColl will contain all hits without the earlier filtering. The SearchDataSource control still contains the full resultset. How do I manage the SearchDataSource result?
Feb 27, 2009 9:30

You can do it like this:

PageDataCollection pdcFoundPages = (PageDataCollection)SearchDataSource.Select(new DataSourceSelectArguments());



Feb 27, 2009 14:49
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.