Categories
Coding

Looping through a SubSonic collection

ArticleCollection articles = new ArticleCollection();
articles.Where("IssueID", 10);
articles.Load();

if (articles.Count > 0)
{
foreach (Article a in articles)
{
Response.Write(a.Headline + ", ");
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *