| ScriptHelper Methods |
The ScriptHelper type exposes the following members.
| Name | Description | |
|---|---|---|
| AddScript |
Adds a script to an existing script
| |
| AddToRegisteredClientScripts |
Adds key identifying script to collection of registered scripts.
| |
| AddToRegisteredStartupScripts |
Adds key identifying script to collection of registered startup scripts.
| |
| Alert |
Renders alert script to the page
| |
| AppendTooltip(WebControl, String, String) |
Appends tooltip to control.
| |
| AppendTooltip(HtmlGenericControl, String, String, Int32, Boolean) |
Appends tooltip to control.
| |
| AppendTooltip(WebControl, String, String, Int32, Boolean) |
Appends tooltip to control.
| |
| CloseWindow | Obsolete.
Generates the script to close the window and optionally refresh the opener content.
| |
| EnsurePostbackMethods |
Ensures that the postback methods are present in the page
| |
| FixPendingCallbacks |
Fixes common 'pendingCallbacks' JavaScript error.
| |
| FixSSLForWCFServices |
Fixes SSL within WCF web services
| |
| FormatTooltipString |
Formats string to be used for tooltip.
| |
| GetAlertScript |
Returns the JavaScript alert message.
| |
| GetDisableProgressScript |
Returns script to disable progress for a single following action.
| |
| GetLoaderHtml |
Gets the HTML content of the standard system loader.
| |
| GetLoaderInlineHtml |
Gets the HTML content of the standard system loader icon with specified text.
| |
| GetLoaderOverlayHtml |
Gets the HTML content of the standard system loader overlay.
| |
| GetLocalizedString(String) |
Localizes and encodes text to be used in JavaScript string and encapsulates it with "'".
| |
| GetLocalizedString(String, Boolean) |
Localizes and encodes text to be used in JavaScript string and optionally encapsulates it with "'".
| |
| GetModalDialogScript(String, String, Int32, Int32, Boolean) |
Returns script which opens modal dialog.
| |
| GetModalDialogScript(String, String, String, String, Boolean) |
Returns script which opens modal dialog.
| |
| GetScript |
Encloses the specified script in an HTML script element.
| |
| GetScriptTag |
Builds an HTML script tag that can be used to include external script given its URL.
Allows to explicitly disable script minification.
| |
| GetString |
Encodes text to be used in JavaScript string and optionally encapsulates it with "'".
| |
| GetTitleScript | Obsolete.
Gets the script for the automatic window title.
| |
| HideVerticalTabs |
Hides the parent vertical tabs
| |
| IsClientScriptBlockRegistered |
Returns whether client script with given key is already registered.
| |
| IsJQueryRegistered |
Determines whether jQuery library is already registered.
| |
| IsMooToolsRegistered |
Determines whether MooTools library is already registered.
| |
| IsStartupScriptRegistered |
Returns whether startup script with given key is already registered.
| |
| IsUnderscoreRegistered |
Determines whether Underscore JavaScript library is already registered.
| |
| JsonSerializeObject |
Serializes the specified object to a JSON string using default formatting
| |
| RefreshTabHeader |
Reload page header and select specified tab
| |
| RefreshTree |
Registers refresh tree script for documents UI
| |
| RegisterAngularModule |
Registers Angular module which will be rendered to start a client-side angular module.
| |
| RegisterApplicationConstants |
Ensures registration of the application constants script. It provides constants applicationUrl, imagesUrl, isRTL.
| |
| RegisterArrayDeclaration | Obsolete.
Ensures registration of the array declaration script.
| |
| RegisterBootstrapScripts |
Ensures registration of Bootstrap JavaScript library.
| |
| RegisterBootstrapTooltip |
Ensures registration of bootstrap tooltip script.
| |
| RegisterClientApplication |
Registers a client script, that adds the client application state to the page, with the Page object.
| |
| RegisterClientScriptBlock(Control, Type, String, String, Boolean) |
Registers a client script block for AJAX and adds the script block to the page, optionally enclosing it in script tags.
| |
| RegisterClientScriptBlock(Page, Type, String, String, Boolean) |
Registers a client script block for AJAX and adds the script block to the page, optionally enclosing it in script tags.
| |
| RegisterClientScriptInclude |
Registers the client script for AJAX and then adds a script file reference to the page.
Allows to explicitly disable script minification.
| |
| RegisterCloseDialogScript |
Registers script for centralized dialog closing. (Contains functionality for refreshing opener window.)
| |
| RegisterCMS |
Ensures registration of the main CMS script.
| |
| RegisterCompletePageScript |
Registers the script which checks the page completeness on postback.
| |
| RegisterDialogScript |
Registers the script for modal dialogs.
Provides function modalDialog(url, name, width, height, otherParams, noWopener).
| |
| RegisterEditScript |
Registers cmsedit.js script to the page and ensures initialization
| |
| RegisterFacebookJavascriptSDK | Obsolete.
Register Facebook JavaScript SDK
| |
| RegisterFlatResize |
Ensures registration of script which causes correct resizing of uni flat selectors.
| |
| RegisterGetTopScript |
Registers script for centralized retrieving of 'top' frame. (Useful for dialogs.)
| |
| RegisterHeaderActionsShadowScript | Obsolete.
Registers script for shadow below header actions.
| |
| RegisterHiddenField(Control, String, String) |
Registers the hidden field to a page
| |
| RegisterHiddenField(Page, String, String) |
Registers the hidden field to a page
| |
| RegisterImageLazyLoad | Obsolete.
Registers script for lazy load images.
| |
| RegisterJQuery |
Ensures registration of jQuery JavaScript library.
| |
| RegisterJQueryAppear |
Ensures registration of jQuery appear JavaScript library.
| |
| RegisterJQueryCookie |
Ensures registration of jQuery cookie JavaScript library.
| |
| RegisterJQueryCrop |
Ensures registration of jQuery crop JavaScript library.
| |
| RegisterJQueryDialog |
Ensures registration of jQuery dialog.
| |
| RegisterJQueryHighLighter |
Ensures registration of jQuery highlighter JavaScript library.
| |
| RegisterJQueryShadow | Obsolete.
Ensures registration of jQuery dropshadow JavaScript library.
| |
| RegisterJQueryTemplates |
Ensures registration of jQuery templates JavaScript library.
| |
| RegisterJQueryTools |
Ensures registration of jQuery tools JavaScript library.
| |
| RegisterJQueryUI |
Ensures registration of jQuery UI JavaScript library.
| |
| RegisterJQueryUILayout |
Registers jQuery UI layout library.
| |
| RegisterLoader |
Ensures the registration of the loader module
| |
| RegisterModule |
Renders JavaScript code to start a client-side module.
| |
| RegisterMooTools |
Ensures registration of MooTools JavaScript library.
| |
| RegisterOnlyNumbersScript |
Registers only numbers script for input fields.
| |
| RegisterOnSubmitStatement |
Registers the form submit statement.
| |
| RegisterPageLoadedEvent |
Registers a client script, that rises the PageLoaded event, with the Page object.
| |
| RegisterPageLoadedFlag |
Registers the script which identifies that page was loaded.
| |
| RegisterPrintDialogScript |
Registers script for printing dialog.
| |
| RegisterRequireJs |
Registers the require.js client script with the Page object.
| |
| RegisterResizer |
Ensures registration of the resizer script.
| |
| RegisterSaveChanges |
Ensures registration of the save changes notification script.
| |
| RegisterSaveShortcut(Page, String) |
Registers a script which when invoked via keyboard shortcut saves the document.
| |
| RegisterSaveShortcutT(T, String, String) |
Registers a control which when invoked via keyboard shortcut saves the document.
| |
| RegisterScriptFile |
Registers the client script and adds a script file reference to the page.
Allows to explicitly disable script minification.
| |
| RegisterScriptFromFile |
Registers the client script and renders the script from file into the page.
| |
| RegisterSpellChecker(Page) |
Ensures registration of the spellchecker script.
| |
| RegisterSpellChecker(Page, Boolean) |
Ensures registration of the spellchecker script.
| |
| RegisterSplitModeSync |
Registers js script for synchronization scroll bars in split mode.
| |
| RegisterStartupScript(Control, Type, String, String, Boolean) |
Registers the startup script.
| |
| RegisterStartupScript(Page, Type, String, String, Boolean) |
Registers the startup script.
| |
| RegisterTooltip |
Ensures registration of tool tip script.
| |
| RegisterTreeProgress |
Ensures registration of the progress icon script for the tree.
| |
| RegisterUnderscore | Obsolete.
Ensures registration of Underscore JavaScript library.
| |
| RegisterWebComponentsScript |
Registers a client script, which is responsible for loading custom web components.
| |
| RegisterWebServiceCallFunction |
Registers helper function to call web services.
| |
| RegisterWOpenerScript |
Registers the script which checks the page completeness on postback.
| |
| RenderAngularModulesScript |
Renders JavaScript code to start a client-side angular modules.
| |
| RequestScriptRegistration |
Requests particular script registration. Returns true if the registration is allowed
| |
| ResetScrollPosition |
Reset scroll positions for current request if MaintainScrollPositionOnPostback is enabled
| |
| ResolveUrl |
Resolves URL to be used in javascript. Virtual context prefix needs to be ensured.
| |
| SerializeModuleParametersToJson |
Converts an object with client-side module parameters to a JSON string.
|