The requested page is not available for the requested platform. You are viewing the content for Default platform.
A newer version of this page is available. Switch to the current version.

MobileApplication.RegisterClientScriptOnApplicationStart(String, String) Method

Registers a client script to be executed on application startup.

Namespace: DevExpress.ExpressApp.Mobile

Assembly: DevExpress.ExpressApp.Mobile.v18.2.dll


public void RegisterClientScriptOnApplicationStart(
    string scriptName,
    string script
Public Sub RegisterClientScriptOnApplicationStart(
    scriptName As String,
    script As String


Name Type Description
scriptName String

A string that is a script name.

script String

A script to be executed on application startup.


The following example demonstrates how to use this method to show a text notification.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Mobile;
public class ClientScriptsController : ViewController {
    protected override void OnActivated() {
        if (((MobileApplication)Application).ClientApplicationCreating) {
            MobileApplication.RegisterClientScriptOnApplicationStart("AlertScript", @"  
                    closeOnClick: true,   
                    message: 'The Application successfully started.',  
                    type: 'success'   
See Also