Async ContentPlaceHolder

An Asp.Net control compatible with the default ContentPlaceHolder mechanism of ASP.Net.

This control allows you to asynchronously load content place holder content. It basically is an update panel combined with a content placeholder.


  • DelayContentLoading: # of milliseconds to wait before starting to load the place holder content after the page load (0 = load content immediately).
  • ChildrenAsTriggers: let the content placeholder child controls trigger an asynchronous load (see UpdatePanel control).
  • RegisterScriptManager: if no script manager is defined on the page, let the control add it dynamically.
  • Triggers: define triggers for loading the content placeholder (see UpdatePanel control).
  • ProgressTemplate: template to show when an asynchronous update is in progress (see UpdateProgress control).
  • DisableAsyncLoadingIfUrlContains: collection of strings separated by ';'. If the page url contains one of these strings, the page will render normally.
  • RegisterJQuery: if no JQuery reference is present on the page, let the control add it dynamically.
<%@ Register TagPrefix="ACPH" Assembly="AsyncContentPlaceHolder, Version=, Culture=neutral, PublicKeyToken=4dc802c73780162e" Namespace="AsyncContentPlaceHolder" %>

<ACPH:AsyncContentPlaceHolder ID="MainContent1" runat="server" DelayContentLoading="1" ChildrenAsTriggers="false" RegisterScriptManager="true" DisableAsyncLoadingIfUrlContains="/_layouts/;" RegisterJQuery="true">
       <asp:AsyncPostBackTrigger ControlID="bButtonInContentTagOtherPage" />
       <asp:AsyncPostBackTrigger ControlID="bButtonInMasterPage" />

Last edited Apr 3, 2013 at 9:33 AM by fvanonckelen, version 23