<asp:Repeater runat="server" ID="rptCategories" onitemcommand="rptCategories_ItemCommand" > <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <a id='<%# DataBinder.Eval(Container.DataItem, "CategoryId")%>' ></a><strong> <asp:Literal ID="litCatName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CategoryName")%>'></asp:Literal> </strong> (Any <asp:Literal ID="litQuantity" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Quantity")%>'></asp:Literal>) </td> </tr> <asp:Repeater runat="server" ID="rptMenuItemsInCategory" DataSource='<%# System.Data.DataRowView)Container.DataItem). Row.GetChildRows("CategoryToMenu") %>' OnItemCommand="rptMenuItemsInCategory_ItemCommand" > <HeaderTemplate> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="Chkmenu" runat="server" OnCheckedChanged="Chkmenu_checkchanged" AutoPostBack="true" /> <asp:Label ID="lblitemname" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[\"ItemName\"]")%>'></asp:Label> <asp:HiddenField ID="hidmenuid" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "[\"MenuId\"]")%>' /> <asp:HiddenField ID="hidCatname" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "[\"CategoryName\"]")%>' /> <asp:HiddenField ID="hidCatId" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "[\"CategoryId\"]")%>' /> </ItemTemplate> <FooterTemplate> </FooterTemplate> </asp:Repeater> </table> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)