I give you an example for your reference.Wish this help you.
<asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
<ItemTemplate>
<asp:Label ID="_lbl_" runat="server" Text='<%# Eval("ID")%>'></asp:Label>
<asp:Repeater ID="_rep_catalog" runat="server">
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Label lbl = (Label)e.Item..FindControl("_lbl_");
string id = lbl.Text;
//Insert into database (ID,UserID)
}
}
Sincerely,
Jasson Wang
Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights