I have a page on my ASP.NET site that has a Repeater element to display messages from site members.
At the moment, I save the data for the messages in an XML file, and then cache them inside the site inside user objects.
So, I have a:
public class MemberPost
{
public string Title { get; set; }
public string Text { get; set; }
public string Name { get; set; }
public DateTime Date { get; set; }
public List<string> Pictures { get; set; }
}
and
public class MemberPosts : List<MemberPost>
{
}
I can set the repeater data source to an instance of MemberPosts, and everything works as expected, but I want to add paging to add additional messages.
All the examples that I find seem to be related to the fact that the data should be uploaded to the database - is there a way to bind a relay or other similar control to my MemberPosts collection in memory and does it swap for me?
VS2010/.NET 3.5, 4.0, .
.