Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

RegisteredScriptType Enumeration

Specifies the type of client script block that is represented by a RegisteredScript object.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public enum RegisteredScriptType

Member nameDescription
ClientScriptBlockA block of client code that executes one time during initial page rendering. A client script block of this type does not execute during partial-page updates.
ClientScriptIncludeA client script that executes every time that an asynchronous postback occurs.
ClientStartupScriptA client script that is associated with a control that executes when the control starts.
OnSubmitStatementA client script that executes when a page is submitted.

The script type indicates when the script is intended to be executed. This can be during page initialization, during page postback, during control startup, and so on.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft