User, Repeater and objectdatasource controls

  • 14 years ago
    I am trying to repeat a user control within my page. Basically the idea is to show a list of products with pictures etc. Each product in the list is a user control (for styling purposes, etc)
    I have an objectdatasource which is declared on the page with the repeater control and the repeater control is bound to it.
    What I want to do is show each individual product by passing a product object to the user control to fill in the information of the various labels, etc.
    Anyone have any idea how to get the object into the user control? Or is there a better way of doing this (not a datagrid)?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”