I have a Repeater element that loads instances of the custom control that I created. This repeater is as follows:
<asp:Repeater ID="myRepeater" runat="server" OnLoad="myRepeater_Load">
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0">
</HeaderTemplate>
<ItemTemplate>
<tr><td><my:CustomControl ID="myControl" runat="server"
OnLoad="myControl_Load" />
</td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
I am communicating with the relay using an event handler myRepeater_Load. My custom control is used to render an element in a repeater. Because of this, I am trying to set properties in a user control during an event handler myControl_Load. However, I do not know how to access the current item during the event myControl_Load.
Is there a way that I can go through the current element or access the current element during an event myControl_Load? If so, how?
Thank,