RegisteredScriptType RegisteredScriptType RegisteredScriptType RegisteredScriptType Enum

定义

指定 RegisteredScript 对象所表示的客户端脚本块的类型。Specifies the type of client script block that is represented by a RegisteredScript object.

public enum class RegisteredScriptType
public enum RegisteredScriptType
type RegisteredScriptType = 
Public Enum RegisteredScriptType
继承
RegisteredScriptTypeRegisteredScriptTypeRegisteredScriptTypeRegisteredScriptType

字段

ClientScriptBlock ClientScriptBlock ClientScriptBlock ClientScriptBlock 1

在初始页呈现期间执行一次的客户端代码块。A 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.

ClientScriptInclude ClientScriptInclude ClientScriptInclude ClientScriptInclude 0

在每次发生异步回发时执行的客户端脚本。A client script that executes every time that an asynchronous postback occurs.

ClientStartupScript ClientStartupScript ClientStartupScript ClientStartupScript 2

与在控件启动时执行的控件相关联的客户端脚本。A client script that is associated with a control that executes when the control starts.

OnSubmitStatement OnSubmitStatement OnSubmitStatement OnSubmitStatement 3

在提交页时执行的客户端脚本。A 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.

适用于