SolutionCottage.com
Posted  14 Dec 2008 - 22:54:44

Category: ASP.net


Databind custom class in a repeater.


Issue:
You might want to use a repeater to display data in a repeater using asp.net.

Solution:
You have to cast the Container.DataItem to the class you have. For example:

<%# ((AlbumImage)Container.DataItem).Name %>








0 comments:








© SolutionCottage 2008-2011 7/21/2017 3:37:41 AM