Class AJAX
Inheritance
Namespace: DotNetNuke.Framework
Assembly: DotNetNuke.dll
Syntax
public class AJAX : object
Methods
| Improve this Doc View SourceAddScriptManager(Page, Boolean)
AddScriptManager is used internally by the framework to add a ScriptManager control to the page.
Declaration
public static void AddScriptManager(Page page, bool checkCdn)
Parameters
Type | Name | Description |
---|---|---|
Page | page | the page instance. |
System.Boolean | checkCdn | Whether check cdn settings from host settings. |
AddScriptManager(Page)
AddScriptManager is used internally by the framework to add a ScriptManager control to the page.
Declaration
public static void AddScriptManager(Page page)
Parameters
Type | Name | Description |
---|---|---|
Page | page |
GetScriptManager(Page)
Gets the current ScriptManager on the page.
Declaration
public static ScriptManager GetScriptManager(Page objPage)
Parameters
Type | Name | Description |
---|---|---|
Page | objPage | the page instance. |
Returns
Type | Description |
---|---|
ScriptManager | The ScriptManager instance, or |
IsEnabled()
IsEnabled can be used to determine if AJAX has been enabled already as we only need one Script Manager per page.
Declaration
public static bool IsEnabled()
Returns
Type | Description |
---|---|
System.Boolean | true if the current request has enabled the script manager, otherwise false. |
IsInstalled()
IsInstalled can be used to determine if AJAX is installed on the server.
Declaration
public static bool IsInstalled()
Returns
Type | Description |
---|---|
System.Boolean | true if ASP.NET AJAX is installed (always), otherwise false (never). |
RegisterPostBackControl(Control)
Allows a control to be excluded from UpdatePanel async callback.
Declaration
public static void RegisterPostBackControl(Control objControl)
Parameters
Type | Name | Description |
---|---|---|
Control | objControl |
RegisterScriptManager()
RegisterScriptManager must be used by developers to instruct the framework that AJAX is required on the page.
Declaration
public static void RegisterScriptManager()
RemoveScriptManager(Page)
RemoveScriptManager will remove the ScriptManager control during Page Render if the RegisterScriptManager has not been called.
Declaration
public static void RemoveScriptManager(Page objPage)
Parameters
Type | Name | Description |
---|---|---|
Page | objPage |
WrapUpdatePanelControl(Control, Boolean)
Wraps a control in an update panel.
Declaration
public static Control WrapUpdatePanelControl(Control objControl, bool blnIncludeProgress)
Parameters
Type | Name | Description |
---|---|---|
Control | objControl | |
System.Boolean | blnIncludeProgress |
Returns
Type | Description |
---|---|
Control | The |