This documentation is archived and is not being maintained.
ClientScriptManager Methods
Visual Studio 2010
The ClientScriptManager type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetCallbackEventReference(Control, String, String, String) | Obtains a reference to a client function that, when invoked, initiates a client call back to a server event. The client function for this overloaded method includes a specified control, argument, client script, and context. |
|
GetCallbackEventReference(Control, String, String, String, Boolean) | Obtains a reference to a client function that, when invoked, initiates a client call back to server events. The client function for this overloaded method includes a specified control, argument, client script, context, and Boolean value. |
|
GetCallbackEventReference(Control, String, String, String, String, Boolean) | Obtains a reference to a client function that, when invoked, initiates a client call back to server events. The client function for this overloaded method includes a specified control, argument, client script, context, error handler, and Boolean value. |
|
GetCallbackEventReference(String, String, String, String, String, Boolean) | Obtains a reference to a client function that, when invoked, initiates a client call back to server events. The client function for this overloaded method includes a specified target, argument, client script, context, error handler, and Boolean value. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetPostBackClientHyperlink(Control, String) | Gets a reference, with javascript: appended to the beginning of it, that can be used in a client event to post back to the server for the specified control and with the specified event arguments. |
|
GetPostBackClientHyperlink(Control, String, Boolean) | Gets a reference, with javascript: appended to the beginning of it, that can be used in a client event to post back to the server for the specified control with the specified event arguments and Boolean indication whether to register the post back for event validation. |
|
GetPostBackEventReference(PostBackOptions) | Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified PostBackOptions instance. |
|
GetPostBackEventReference(Control, String) | Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information. |
|
GetPostBackEventReference(PostBackOptions, Boolean) | Returns a string that can be used in a client event to cause postback to the server. The reference string is defined by the specified PostBackOptions object. Optionally, registers the event reference for validation. |
|
GetPostBackEventReference(Control, String, Boolean) | Returns a string to use in a client event to cause postback to the server. The reference string is defined by the specified control that handles the postback and a string argument of additional event information. Optionally, registers the event reference for validation. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
GetWebResourceUrl | Gets a URL reference to a resource in an assembly. |
|
IsClientScriptBlockRegistered(String) | Determines whether the client script block is registered with the Page object using the specified key. |
|
IsClientScriptBlockRegistered(Type, String) | Determines whether the client script block is registered with the Page object using a key and type. |
|
IsClientScriptIncludeRegistered(String) | Determines whether the client script include is registered with the Page object using the specified key. |
|
IsClientScriptIncludeRegistered(Type, String) | Determines whether the client script include is registered with the Page object using a key and type. |
|
IsOnSubmitStatementRegistered(String) | Determines whether the OnSubmit statement is registered with the Page object using the specified key. |
|
IsOnSubmitStatementRegistered(Type, String) | Determines whether the OnSubmit statement is registered with the Page object using the specified key and type. |
|
IsStartupScriptRegistered(String) | Determines whether the startup script is registered with the Page object using the specified key. |
|
IsStartupScriptRegistered(Type, String) | Determines whether the startup script is registered with the Page object using the specified key and type. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
RegisterArrayDeclaration | Registers a JavaScript array declaration with the Page object using an array name and array value. |
|
RegisterClientScriptBlock(Type, String, String) | Registers the client script with the Page object using a type, key, and script literal. |
|
RegisterClientScriptBlock(Type, String, String, Boolean) | Registers the client script with the Page object using a type, key, script literal, and Boolean value indicating whether to add script tags. |
|
RegisterClientScriptInclude(String, String) | Registers the client script with the Page object using a key and a URL, which enables the script to be called from the client. |
|
RegisterClientScriptInclude(Type, String, String) | Registers the client script include with the Page object using a type, a key, and a URL. |
|
RegisterClientScriptResource | Registers the client script resource with the Page object using a type and a resource name. |
|
RegisterExpandoAttribute(String, String, String) | Registers a name/value pair as a custom (expando) attribute of the specified control given a control ID, attribute name, and attribute value. |
|
RegisterExpandoAttribute(String, String, String, Boolean) | Registers a name/value pair as a custom (expando) attribute of the specified control given a control ID, an attribute name, an attribute value, and a Boolean value indicating whether to encode the attribute value. |
|
RegisterForEventValidation(PostBackOptions) | Registers an event reference for validation with PostBackOptions. |
|
RegisterForEventValidation(String) | Registers an event reference for validation with a unique control ID representing the client control generating the event. |
|
RegisterForEventValidation(String, String) | Registers an event reference for validation with a unique control ID and event arguments representing the client control generating the event. |
|
RegisterHiddenField | Registers a hidden value with the Page object. |
|
RegisterOnSubmitStatement | Registers an OnSubmit statement with the Page object using a type, a key, and a script literal. The statement executes when the HtmlForm is submitted. |
|
RegisterStartupScript(Type, String, String) | Registers the startup script with the Page object using a type, a key, and a script literal. |
|
RegisterStartupScript(Type, String, String, Boolean) | Registers the startup script with the Page object using a type, a key, a script literal, and a Boolean value indicating whether to add script tags. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
ValidateEvent(String) | Validates a client event that was registered for event validation using the RegisterForEventValidation method. |
|
ValidateEvent(String, String) | Validates a client event that was registered for event validation using the RegisterForEventValidation method. |
Show: