Skip to main content
A newer version of this page is available. .
Tab

ASPxWebControl.RegisterBaseScript(Page, Boolean) Method

Registers base scripts required to embed an ASPxWebControl control onto the specified page.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public static void RegisterBaseScript(
    Page page,
    bool registerMobileScript
)

Parameters

Name Type Description
page Page

A Page object which specifies the page to which the current ASPxWebControl belongs.

registerMobileScript Boolean

true to register scripts for mobile devices; otherwise false.

Remarks

This method is intended to solve the following problem. When the ASPxWebControl control (or one of its descendants) is placed into an AJAX Update Panel and its Visible property is initially set to false, it can’t be displayed on this page because its scripts are not registered in the appropriate manner. To avoid this problem, use the RegisterBaseScript method.

Note

The RegisterBaseScript method cannot be called before the Form property is initialized (for example from the PreInit event handler).

See Also