RegisteredScriptType 枚举

定义

指定 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
继承
RegisteredScriptType

字段

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 0

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

ClientStartupScript 2

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

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.

适用于