AJAX Page - CallbackPanel Server-side

Methods, Properties, Events

<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>

Methods

Name Description
methodUpdatePanel Update callback panel specified by id.


UpdatePanel(panelID)
  • panelID - ID of the callback panel.
UpdatePanel("callbackPanel1");


The content of the callback panel can also be loaded inside a container
(div, span, table cell, etc.).

UpdatePanel(panelID, containerID)
  • panelID - ID of the callback panel.
  • containerID - ID of the container (div, span, table cell, etc.).
UpdatePanel("callbackPanel1", "container");

View UpdatePanel tutorial.
methodUpdateAllPanels Update all callback panels from page.

UpdateAllPanels()

Does not require any parameters.

UpdateAllPanels();

View UpdateAllPanels tutorial.

Properties

Name Description
propertyID The ID of the panel.
propertyRenderMethod Rendering method of the callback panel.
Accepted values are:
  • Always - the panel is always updated (when the page is first loaded, when an explicit UpdatePanel requests it, when UpdateAllPanels is used).
  • OnCallback - the panel is only updated on a callback (when an explicit UpdatePanel requests it, when UpdateAllPanels is used).
    The panel is not rendered when the page is first loaded.
  • OnExplicitRequest - the panel is only updated when UpdatePanel is used explicitly for this panel.
    It is not rendered when the page is first loaded, nor when UpdateAllPanels is used.
  • OnExplicitRequestAndPageLoad - the panel is only updated when UpdatePanel is used explicitly for this panel.
    It is also rendered when the page is first loaded.

Default value is Always. Optional.
propertyShowLoading When a callback panel update is taking place after a postback, have the option to choose if to show or not the loading panel.

Default value is true.
propertyClientOnUnload Can contain javascript instructions that will be executed before panel unload. Optional.

postbackPanel1.ClientOnUnload = "alert('on panel unload');";

Events

Name Description
propertyBeforePanelUpdate Invoked before the update is triggered on the server.
If the registered method for this event returns false, the update is canceled.

Parameters:
  • panelId - Panel id to update - null if request was made to update all panels.
  • containerId - Container in which to store the panel's content - null if panel updates itself in its own container.
In order for the event to be caried out (the panel to be updated/the request to be sent) the function must return true.
propertyPanelUpdate Invoked after the update has been completed at server side.

Parameters:
  • panelId - Panel id to update - null if request was made to update all panels.
  • containerId - Container in which to store the panel's content - null if panel updates itself in its own container.