M
Mike
I want to display something like this in a Repeater:
Headline
Abstract
Date Posted
Filed under: Cat1 | Cat2 | Cat3
------------------------------------
Headline
Abstract
Date Posted
Filed under: Cat1 | Cat2 | Cat3
-------------------------------------
I have a proc which returns a dataset containing 2 datatables. The first
one contains the Article details (ID, Headline, etc) and the second one
contains all the categories. My table structure is like this:
tblArticles
ArticleID
Headline
Abstract
DatePosted
tblCategories
CatagoryID
Category
tblArticleCategories
ArticleID
CategoryID
I read an interesting article on nesting repeaters, but this is not quite
what I want, because I want the "Filed Under: Cat2 | Cat3" etc to appear on
one line. Can anyone give me any pointers as to what approach I should be
taking? I want to avoid making separate calls to the database for the
categories of each article within the Repeater's ItemDataBound event, unless
of course this is the best way...
Thanks
Headline
Abstract
Date Posted
Filed under: Cat1 | Cat2 | Cat3
------------------------------------
Headline
Abstract
Date Posted
Filed under: Cat1 | Cat2 | Cat3
-------------------------------------
I have a proc which returns a dataset containing 2 datatables. The first
one contains the Article details (ID, Headline, etc) and the second one
contains all the categories. My table structure is like this:
tblArticles
ArticleID
Headline
Abstract
DatePosted
tblCategories
CatagoryID
Category
tblArticleCategories
ArticleID
CategoryID
I read an interesting article on nesting repeaters, but this is not quite
what I want, because I want the "Filed Under: Cat2 | Cat3" etc to appear on
one line. Can anyone give me any pointers as to what approach I should be
taking? I want to avoid making separate calls to the database for the
categories of each article within the Repeater's ItemDataBound event, unless
of course this is the best way...
Thanks