Sample source and Club ID

Vote:
 

 I'm trying to modiy the Sample Source to render recipientcontainers based on Club ID. Any idea how to do this?

///
/// Return a collection of recipientcontainers using paging and sorting
///
///
What site to use
/// Page and pagesize is used to find the correct starting record for the result
/// Pagesize is used to return the correct number of items in the collection
/// The total number of items available
/// The expected sort order
///
public RecipientContainerCollection GetRecipientContainers(EPiServer.Common.ISite site, int page, int pageSize, out int totalItems, params RecipientContainerSortOrder[] order)
{
totalItems = 0;
// The StarSuite site doesn't apply in any sensible way.
if (site == null)
{
RecipientContainerCollection rcc = new RecipientContainerCollection();

using (DbDataReader reader = DatabaseHandler.GetReader("spSampleEPiServerMailGetNewsletters", page, pageSize, GetSortString(order)))
{
while (reader.Read())
{
totalItems = reader.GetInt32(3);
rcc.Add(ConstructRecipientContainer(reader));
}
}

return rcc;
}
else
return new RecipientContainerCollection();
}

#31258
Jul 14, 2009 15:27
Vote:
 
#31259
Jul 14, 2009 20:50
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.