johnc
johnc

Reputation: 40223

ASP.NET Passing properties to dynamically generated user controls

I am struggling on something that, I am sure, should be easy. I have been living in backend and winforms code for a long time, and I'm am building my first ASP.NET page in over a year, so apologies for any noobishness

I am inside a User Control on a page.

On this User Control (Parent Control) I need to embed 0 .. n child user controls in a table, where each Child User control is representative of a row in a Listbox on the Parent User Control.

On the child user control I have a few properties that need setting, such as the id of the item in the list box that it represents.

As I see it, I can either

Any ideas would be greatfully received

Upvotes: 0

Views: 709

Answers (1)

Steven A. Lowe
Steven A. Lowe

Reputation: 61223

repeater control bound to the same data source as the listbox?

Upvotes: 2

Related Questions