Hi Imar I want to show recently added (single) review for every genre on a page, and on clicking genre name I will show all reviews falling in that genre but I am having some problem.
I am not getting any way to show only single review with every genre.
How I can change this code so that it works...
Code:
using (PlanetWroxDataContext myDataContext = new PlanetWroxDataContext())
{
var allGenres = from genre in myDataContext.Genres
orderby genre.Name
select new { genre.Name, genre.Reviews };
Repeater1.DataSource = allGenres;
Repeater1.DataBind();
}
In design view I am using repeater and datalist controls.