I have an ASP.NET web app that places several string data into an object as properties. The string data is sourced from a JSON feed from Twitter. A collection of my TwitterMessages is held in a Generic List.
What I want to do is use an asp:repeater
to iterate through my List<T>
to display all of the contents of the objects it holds, by using <%# Eval("MyURL") %>
. MyURL is the name of a property inside my TwitterMessage object.
In a previous question I was advised to use the asp:Repeater template to display my data in a custom HTML table. So being able to use a template somehow or other, is really what I'm interested in.
Where I am struggling is in working out how to perform a databind to the Repeater so I can reference my object data in the .aspx page.
I am aware that I need to use the ItemDataBound method in order to make a data-bound event so that I can reference the property names in my string data object.
Hope that's enough info for some much appreciated help! :)