AJAX Page - CallbackPanel - Auto Callback example

New!
  • No need to send the control value using ob_post.AddParam method.
  • No need to update the callback panel using ob_post.UpdatePanel method.
  • Any postback originated from AJAX Page panel and caused by a submit button is done using AJAX without any user interaction.
  • The server controls state is updated after AJAX call from within a callback panel.
  • <oajax:CallbackPanel id="callbackPanel1" runat="server">
        <content>
            <asp:Button id="btnSubmit" runat="server" text="Save" OnClick="btnSubmit_Click" />
    ...                                    
Download Download this working example.
Add new product example
Product type:
Title:
Creator:
Identifier:
Publisher:
Language:
Status:
Features:



Client AutoCallback
This link button can be placed anywhere on your page.

<script>
        function ClientAutoCallback()
        {
            document.getElementById('
                <%= this.btnSubmit.ClientID %>').click();
        }
</script>

<a href="javascript:ClientAutoCallback()">
        Client AutoCallback
</a>