ScriptManager.RegisterNamedClientScriptResource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Overloads
RegisterNamedClientScriptResource(Control, String) |
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) |
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)
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)
Parameters
- control
- Control
The control that is registering the script.
- resourceName
- String
An identifier for the resource.
Applies to
RegisterNamedClientScriptResource(Page, String)
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)
Parameters
- page
- Page
The page object that is registering the script.
- resourceName
- String
An identifier for the resource.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應