Download Now Code Base AsyncDocs Contact Us
asyncRepeater
liveDemo
Clicking "Re-Bind the AsyncRepeater" will display randomly selected results from the datasource.
First Name Last Name Account Balance
Maksymilian Board $60
Marcelo Arwick $23790
Géraud Hinz $1660
Peter Hinkkanen $2160
Ellen Indriawan $2356
Ron Hutchison $148.28
Greg Hirschman $1848
Francesco Boyd $247.29
Steve Belotser $15568.1
Jack Polier $5347
Ronaldo Xavier $7433
Francois Mohos $6456.7
Chris Nowikow $670
Geoff Tukarunkul $932.16
Latricia Juss $50
Ziv Chaffin $6776.45
Scott Von Der Porten $1036.2
Carlos Ryan $1179
Peter Glick $3580
Chris Bartz $678

Description

The AsyncRepeater gives you the ability to create fast data bound templates that are Async-Enabled.



Features
  • Can be bound and re-bound during an AsyncCallback.
  • Easily create DHTML effects for your item templates to provide "rolling" item template colors, and mouse over highlighting effects.
  • Allows you to easily receive OnItemCommand, OnItemDataBound, OnHeaderBound, and OnFooterBound.
  • Easily get a handle on any header and footer control.
  • Change the visibility during an AsyncCallback.
  • Supports many of the other properties/methods provided by asp:Repeater.
  • Functions as a regular server control if the browser does not support asynchronus operations, allowing you to support legacy browsers.
   
<%@ Register Assembly="AsyncControls" Namespace="DelvingWare.AsyncControls" TagPrefix="dw" %>

<dw:AsyncRepeater ID="rptUsers" runat="server" 
        OnItemDataBound="rptUser_ItemDataBound"
        EnableEffects="true" 
        RollACssClass="rollA" 
        RollBCssClass="rollB" 
        HighlightCssClass="highlight"
        CssClass="asyncRep" 
        Visible="true">
            <HeaderTemplate>
            <table cellpadding="4">
                <tr class="headlnk">
                    <td>
                        First Name
                    </td>
                    <td>
                        Last Name
                    </td>
                    <td>
                        Account Balance
                    </td>
                </tr>            
            </HeaderTemplate>
            
            <ItemTemplate>
                <tr $roll$ $highlight$>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlFirstName" />
                    </td>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlLastName" />
                    </td>
                    <td>
                    <dw:AsyncLiteral runat="server" ID="ltlAccBalance" />
                    </td>
                </tr>
            </ItemTemplate>
            
            <FooterTemplate>
            </table>
            </FooterTemplate>
            
        </dw:AsyncRepeater>
<br />
<dw:AsyncButton runat="server" ID="btMain" 
OnClick="btMain_Click" 
CssClass="greyButton">Re-Bind the AsyncRepeater</dw:AsyncButton>