Methods,
Properties,
Events
| AJAXPage - CallbackPanel Server-side
|
| |
|
OboutInc.oboutAJAXPage
namespace
<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>
Methods
UpdatePanel
|
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.
|
UpdateAllPanels
|
Update all callback panels from page.
UpdateAllPanels()
Does not require any parameters.
UpdateAllPanels();
View UpdateAllPanels tutorial.
|
|
|
|
|
Properties
ID
|
The ID of the panel.
|
RenderMethod
|
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.
|
ShowLoading
|
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.
|
ClientOnUnload
|
Can contain javascript instructions that will be executed before panel unload. Optional.
postbackPanel1.ClientOnUnload = "alert('on panel unload');";
|
|
|
|
|
Events
BeforePanelUpdate
|
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.
|
PanelUpdate
|
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.
|
|
|
|
|
| "Thanks for the great support.
I will buy the whole suite within a couple of days.
You guys are the best!" |
Toine A.G. Bastiaans |
|
| |
|