Hi Im having repeater control, in which datalist control is there, and I want to write and caputure the datalist events like the itemcreated, itemdatabound, etc, and to get a value of the label control, how can I do it?
and how can I get a value of dropdownlist value in the button value, and do some background processing on database..
appreciate your help.. thanks
<asp:Repeater ID="Repeater2" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<ItemTemplate>
<%# Eval("ID") %>, <%#Eval("Name")%>
<br />
<asp:DataList ID="DataList1" runat="server" Width="154px" RepeatDirection="Horizontal">
<ItemTemplate>
<br />
<a href='/store/<%# Replace(Eval("Name"), " ", "-") %>/<%# Eval("Id") %>'>
<div>
<asp:Image ID="Image1" runat="server" Height="125px" Width="141px" BorderWidth="1"
ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ID","/PictureRead/homepageimage.aspx?ID={0}") %>'/>
</div>
</a>
<%# Eval("Name") %> <br />
RS. <%# Eval("Price")%>
<asp:Label ID="Label1" runat="server" Text="<%# Eval("Id") %>"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server">
<asp:ListItem Value="99">1 Piece 99</asp:ListItem>
<asp:ListItem Value="145">3 Piece 145</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Text="AddtoCart" />
<hr />
</ItemTemplate>
</asp:DataList>
</ItemTemplate>
</asp:Repeater>