Using ItemCreated for a Repeater in VB?

J

jason.gladstone

Hello - I am trying to create a repeater control that contains a
dropdownlist. A friend of mine sent me a sample in C#. I am trying to
duplicate the sample in VB. This is the C# code in the OnLoad event:

//bind the items to the repeater
this.repeater.DataSource = items;
this.repeater.ItemCreated += new
RepeaterItemEventHandler(repeater_ItemDataBound);
this.repeater.DataBind();

Attaching the RepeaterItemEventHandler to ItemCreated is giving me
problems. I want to use this in the OnLoad and not in the
OnItemCreated in the repeater tag. Any clue how one would write the
following line in VB:

this.repeater.ItemCreated += new
RepeaterItemEventHandler(repeater_ItemDataBound);

Thanks,
Jason
 

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
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top