Using ItemCreated for a Repeater in VB?

  • Thread starter Thread starter jason.gladstone
  • Start date Start date
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
 
Back
Top