Translate

> > ASP.NET sub Repater (repater inside repater, nested) data source get from parent repater value

ASP.NET sub Repater (repater inside repater, nested) data source get from parent repater value

Posted on Wednesday, June 19, 2013 | No Comments

 <asp:Repeater ID="submenu1" runat="server" DataSource='<%# getSubCategory(DataBinder.Eval(Container.DataItem,"ID").ToString()) %>'>
                                <ItemTemplate>
                                <li>
                                    <asp:HyperLink ID="lnkMenuItem" runat="server" NavigateUrl='<%# "~/GUI/SubCategoryUI.aspx?Val=" + Eval("ID") + "&CategoryID=" + Eval("CategroyID") %>' Text='<% #Eval("SubCategroyName") %>'> </asp:HyperLink>
                                </li>
                                </ItemTemplate>
                            </asp:Repeater>

Leave a Reply

Powered by Blogger.