Download Now Code Base AsyncDocs Contact Us
asyncPanel
liveDemo
Click "Show Nested AsyncPanel" to show the child AsyncPanel. The look and feel of the AsyncPanel is fully customizable.



Description

The AsyncPanel is a very lightweight AsyncWebControl used to only contain other child controls.



Features
  • Simple, and lightweight.
  • Can be scrolled into view during an AsyncCallback.
  • Provides "group validation" abilities via the use of StrictValidation
  • Its an AsyncWebControl, which means that you can change it's CSS class, Left/Top coordinate, Width/Height, and ForeColor/BackColor, during an AsyncCallback.
  • Supports many of the other properties provided by asp:Panel.
  • 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:AsyncPanel runat="server" ID="pnlMain" CssClass="asyncPanel">
    
    <p>
        <dw:AsyncButton runat="server" ID="btShowPanel" 
        Text="Show Nested AsyncPanel" 
        OnClick="btShowPanel_Click" 
        DisableDuringCallback="false" 
        CssClass="greyButton"/>
        <br />
        <br/>
        <dw:AsyncButton runat="server" ID="btHidePanel" 
        Enabled="false" 
        Text="Hide Nested AsyncPanel" 
        OnClick="btHidePanel_Click" 
        DisableDuringCallback="false" 
        CssClass="greyButton"/>
        <p/>
        <dw:AsyncPanel runat="server" ID="pnlNestedMain" 
        Visible="false"            
        CssClass="nestedPanel">
            <div class="nestedPanelText">I'm inside a nest AsyncPanel</div>
        </dw:AsyncPanel>
    </p>
    
</dw:AsyncPanel>