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 + “, “); } }

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

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