Flush a repeater

Discussion in 'C#' started by diac, Oct 5, 2006.

  1. #1
    Hello all, I work in VB.NET.

    I am using a repeater with this code:

    
            <asp:Repeater ID="myList" runat="server">
            <ItemTemplate>
            <div>
            <%#Container.DataItem%> = <%# myObj.getIt(Container.DataItem) %>
            </div>
            </ItemTemplate>
            </asp:Repeater>
    
    Code (markup):
    I fill the repeater with an arraylist as below:

    
            myList.DataSource = myArray
            myList.DataBind()
    
    Code (markup):
    The array is big enought to let me wait 30 seconds before to see the data displayed, thats becouse myObj needs some seconds to do his work.

    I would like to flush the response as I can do with ASP 3.0 (Response.Flush!) so that i can start to read the first data while all the rest are loading.

    Is it possible? Thx in advance :)
     
    diac, Oct 5, 2006 IP
  2. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160