Tab
A newer version of this page is available. Switch to the current version.

ASPxScriptManager Class

A script manager component.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxScriptManager :
    ASPxResourceManagerBase
Public Class ASPxScriptManager
    Inherits ASPxResourceManagerBase

Remarks

The ASPxScriptManager allows you to manage DevExpress scripts on the page without DevExpress controls.

Use the ASPxScriptManager.Items collection to specify suites, whose suite-specific scripts should be attached. You can see the list of available suites in the Suite enumeration.


<dx:ASPxScriptManager ID="ASPxScriptManager1" runat="server">
     <Items>            
          <dx:ResourceScript Suite="Editors" />
          <dx:ResourceScript Suite="Grid" />
          <dx:ResourceScript Suite="NavigationAndLayout" />
     </Items>
</dx:ASPxScriptManager>

Depending on the configuration defined in the "resources" section of the Web.config file, the ASPxScriptManager component attaches the jQuery library and additional resources as well.

NOTE

A web page can contain only one ASPxScriptManager component. To determine whether a page contains the component, use the ASPxScriptManager.Active property.

See Also