I will look into these. I hate the fact that you're soo damn smart ;o) On 8/16/05, Charles Carroll <[EMAIL PROTECTED]> wrote: > #1 > http://www.metabuilders.com/Tools/NestedRepeater.aspx > > #2 > and also why not just dynamically create the repeaters and itemtemplates? > http://www.syncfusion.com/FAQ/aspnet/WEB_c16c.aspx#q380q > http://dotnetdan.com/articles/aspnet/DataBinding.htm > > > On 8/15/05, Mike Appenzellar <[EMAIL PROTECTED]> wrote: > > > > I am trying to nest repeaters and I also want unlimited levels. > > Basically the table layout is: > > > > ID PID Title > > -------------------------- > > 1 0 Main title 1 > > 2 0 Main title 2 > > 3 1 Sub title 1 > > > > Here is the code > > > > Rdr = New SqlDataAdapter("SELECT id, pid, navTitle, pageTitle FROM > > NAVIGATION WHERE pid = 0 ORDER BY sortOrder ASC", Conn) > > > > RdrSet = New DataSet > > Rdr.Fill(RdrSet, "Navigation") > > RdrSet.Relations.Add("myrelation", _ > > RdrSet.Tables("Navigation").Columns("id"), _ > > RdrSet.Tables("Navigation").Columns("pid")) > > nav.datasource = RdrSet > > nav.DataBind() > > > > --------------------- > > > > <asp:Repeater id="nav" runat="server"> > > <ItemTemplate> > > <%# NavTxt(Container.DataItem) %> > > <asp:Repeater id="subNav" runat="server" datasource='<%# > > Container.DataItem.Row.GetChildRows("myrelation") %>'> > > <ItemTemplate> > > <%# NavTxt(Container.DataItem) %> > > </ItemTemplate> > > </asp:Repeater> > > </ItemTemplate> > > </asp:Repeater> > > > > > > > > Am I even going in the right direction? The added problem is that I > > need to go more than 2 levels. > > > [Non-text portions of this message have been removed] > > > ________________________________ > YAHOO! GROUPS LINKS > > Visit your group "AspNetAnyQuestionIsOk" on the web. > > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. > ________________________________ >
------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hua35jn/M=362329.6886308.7839368.1510227/D=groups/S=1705006764:TM/Y=YAHOO/EXP=1124206911/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
