asp.net 2.0 repeater own class

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
 
S

sloan

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"
 
A

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top