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.