Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Cascading repeaters

    Hello

    Does anyone know if it is possible to use a Repeater control within
    another one and setting it's datasource dynamically?

    Example:

    <asp:Repeater id="r1" runat="server">
    <ItemTemplate>
    <p>
    <asp:Repeater id="r2" runat="server">
    <%#DataBinder.Eval(Container.DataItem, "xxx")%>
    </asp:Repeater>
    </p>
    </ItemTemplate>
    </asp:Repeater>


    And what I want is r2's datasource to be set on every iteration of r1...


    --
    Mikael Engdahl

    Mikael Engdahl Guest

  2. Similar Questions and Discussions

    1. Repeaters and eventListeners
      Ok, so I am close and I thank help on this yesterday. I have a page that has a repeating canvas with items inside the canvas. When the mouse enters...
    2. Conditional code in Repeaters
      Here's my situation: I'm creating a blog-like application for my company to do some simple news updates about new products in and the like that...
    3. Expandible Nested Repeaters
      I am trying to create a asp.net web control the nests repeater controls as well as allows the user to expand the nested repeater. Can someone point...
    4. Checkboxes with Repeaters and DataGrids
      I am having trouble getting checkboxes to work within Repeaters and DataGrids I have tried to access the value of each checkbox within a repeater...
    5. Catching buttons in repeaters
      *google wont let me post to microsoft.public.dotnet.framework.aspnet.webcontrols so thats why i posted here* I have a repeater that i want to...
  3. #2

    Default Re: Cascading repeaters

    Hi Mikael,

    This KB article should help:
    306154 HOW TO: Display Hierarchical Data by Using Nested Repeater Controls
    and Visual C# .NET
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;306154[/url]

    Good luck!


    --
    Ray Dixon - Microsoft MVP
    [email]ray@NOSPAM.greeble.com[/email]
    (remove NOSPAM. from my e-mail address for a direct reply)


    "Mikael Engdahl" <mikael-l@engdahl.no.spam.com> wrote in message
    news:%23CSclJcXDHA.2592@TK2MSFTNGP09.phx.gbl...
    > Hello
    >
    > Does anyone know if it is possible to use a Repeater control within
    > another one and setting it's datasource dynamically?
    >
    > Example:
    >
    > <asp:Repeater id="r1" runat="server">
    > <ItemTemplate>
    > <p>
    > <asp:Repeater id="r2" runat="server">
    > <%#DataBinder.Eval(Container.DataItem, "xxx")%>
    > </asp:Repeater>
    > </p>
    > </ItemTemplate>
    > </asp:Repeater>
    >
    >
    > And what I want is r2's datasource to be set on every iteration of r1...
    >
    >
    > --
    > Mikael Engdahl
    >

    Ray Dixon [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139