Nested repeaters databind in ASP.NET
<p>I have two nested repeaters and I want call  repeater2 databind inside repeater1.
Why? Well, I need Repeat some lines of repeater2. But I try this and repeater2 only work 1 time, should work 4 times. Please Help!</p>

<p>Protected Sub Repeater1_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles Repeater1.ItemDataBound</p>

<pre><code>    For i = 0 To 4
        con.Open()
        Dim consulta As String = "SELECT DISTINCT Ordenes.Orden, Ordenes.Id, Ordenes.Codigo, Ordenes.Descripcion, Ordenes.Cantidad, Ordenes.PrecioVenta, " &amp; _
        "Ordenes.FechaCreacion, Inventario.CostoUnitario, Inventario.Marca, Inventario.Garantia, Inventario.Modelo, Inventario.Color, Inventario.Serial, " &amp; _
        "Inventario.CodigoFabricante, Clientes.Nombres, Clientes.Apellidos, Inv_Imagenes.Enlace FROM Ordenes INNER JOIN Inventario ON Ordenes.Codigo = " &amp; _
        "Inventario.Codigo INNER JOIN Clientes ON Ordenes.IdCliente = Clientes.IdCliente INNER JOIN Inv_Imagenes ON Ordenes.Codigo = Inv_Imagenes.Item WHERE " &amp; _
        "(Ordenes.id = @idt) AND (Inv_Imagenes.Tipo = 'img') AND (Inv_Imagenes.Orden = 1)"

        cmd = New SqlCommand(consulta, con)
        cmd.Parameters.AddWithValue("@idt", e.Item.DataItem("id").ToString)
        dr = cmd.ExecuteReader
        Dim Repeater2 As Repeater = e.Item.FindControl("Repeater2")
        Repeater2.DataSource = dr
        Repeater2.DataBind()
        dr.Close()
        con.Close()
    Next

End Sub
</code></pre>

<p>Well example, someone orders one 4 phones, I need render 4 lines to entry the Imei of everyone phone one by one to insert in other table</p>
