I have a page that display of all News in a database, which I get with function
IList<News> GetAll();
I then bind the list to a repeater to display all the news. If a user clicks on news N, he is redirected to page.aspx?id=N
If the QueryString["id"] is set, then I get one of my News like this:
News news = sNewsService.Get(int.Parse(id));
Now, I would like to display this single news, but I cannot bind it to a Repeater as it does not implement IListSource or IEnumerable.
Is there any other way to display the properties of one news instead of writing every property value to a different Label like lText = news.Text; lTitle = news.Title;... or wrapping the news in a List?