<asp:Repeater ID="rpt1" runat="server" OnItemDataBound="rpt1_ItemDataBound" OnItemCommand="rpt1_ItemCommand"> <div><%# Eval("Name") %>-<%# Eval("CollectionType")%> <asp:LinkButton ID="LinkButton1" runat="server" Text="[edit item]" PostBackUrl='AddItem.aspx?CategoryID=<%# Eval("CollectionID")%>' /> </div> </ItemTemplate> </asp:Repeater>
public void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { List<GlassesCollection> gc = BL.GetDataBL.GetCollection(); rpt1.DataSource = gc; rpt1.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)