asp.net 2.0 repeater own class

  • Thread starter Thread starter Alexander Widera
  • Start date Start date
A

Alexander Widera

hi,
i get a list of IDs from a sqlcommand. With each of this IDs i create an
object of a class "XY". Each object and its properties should now be
displayed in an asp:repeater.
How can I make this?

Alex
 
With 1.1, try creating a CollectionBase object of your XY

XYCollection : CollectionBase

and then putting all your XY's into the XYCollection and bind the Repeater
to the XYCollection.

...

with 2.0, use the same concept, though you may want to try a Generic <List>.

...


"Alexander Widera"
 
thank you for the hint with CollectionBase... now it works...
What do you exactly mean with a Generic <List> in asp 2.0 ?

alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top