ASPxWebControl.RegisterBaseScript(Page) Method
Registers base scripts, required to embed an ASPxWebControl control onto the specified page.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
page | Page | A Page object which specifies the page to which the current ASPxWebControl belongs. |
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, as shown below:
protected void Page_Load(object sender, EventArgs e) {
DevExpress.Web.ASPxWebControl.RegisterBaseScript(this);
}
Note
The RegisterBaseScript method cannot be called before the Form property is initialized (for example from the PreInit event handler).
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RegisterBaseScript(Page) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.