ScriptManager.RegisterNamedClientScriptResource 方法

定义

按资源名称向 ScriptManager 控件注册嵌入程序集中的客户端脚本,以便和正在参与局部页面呈现的控件一起使用。Registers client script by resource name that is embedded in an assembly with the ScriptManager control for use with a control that is participating in partial-page rendering.

重载

RegisterNamedClientScriptResource(Control, String)

按资源名称向 ScriptManager 控件注册嵌入程序集中的客户端脚本,以便和正在参与局部页面呈现的控件一起使用。Registers client script by resource name that is embedded in an assembly with the ScriptManager control for use with a control that is participating in partial-page rendering.

RegisterNamedClientScriptResource(Page, String)

按资源名称向 ScriptManager 控件注册嵌入程序集中的客户端脚本,以便和正在参与局部页面呈现的控件一起使用。Registers client script by resource name that is embedded in an assembly with the ScriptManager control for use with a control that is participating in partial-page rendering.

RegisterNamedClientScriptResource(Control, String)

按资源名称向 ScriptManager 控件注册嵌入程序集中的客户端脚本,以便和正在参与局部页面呈现的控件一起使用。Registers client script by resource name that is embedded in an assembly with the ScriptManager control for use with a control that is participating in partial-page rendering.

public:
 static void RegisterNamedClientScriptResource(System::Web::UI::Control ^ control, System::String ^ resourceName);
public static void RegisterNamedClientScriptResource (System.Web.UI.Control control, string resourceName);
static member RegisterNamedClientScriptResource : System.Web.UI.Control * string -> unit
Public Shared Sub RegisterNamedClientScriptResource (control As Control, resourceName As String)

参数

control
Control

正在注册脚本的控件。The control that is registering the script.

resourceName
String

资源的标识符。An identifier for the resource.

适用于

RegisterNamedClientScriptResource(Page, String)

按资源名称向 ScriptManager 控件注册嵌入程序集中的客户端脚本,以便和正在参与局部页面呈现的控件一起使用。Registers client script by resource name that is embedded in an assembly with the ScriptManager control for use with a control that is participating in partial-page rendering.

public:
 static void RegisterNamedClientScriptResource(System::Web::UI::Page ^ page, System::String ^ resourceName);
public static void RegisterNamedClientScriptResource (System.Web.UI.Page page, string resourceName);
static member RegisterNamedClientScriptResource : System.Web.UI.Page * string -> unit
Public Shared Sub RegisterNamedClientScriptResource (page As Page, resourceName As String)

参数

page
Page

正在注册脚本的页对象。The page object that is registering the script.

resourceName
String

资源的标识符。An identifier for the resource.

适用于