Export (0) Print
Expand All

ClientScriptManager Methods

The ClientScriptManager type exposes the following members.

  Name Description
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetWebResourceUrl Gets a URL reference to a resource in an assembly.
Public method IsClientScriptBlockRegistered(String) Determines whether the client script block is registered with the Page object using the specified key.
Public method IsClientScriptBlockRegistered(Type, String) Determines whether the client script block is registered with the Page object using a key and type.
Public method IsClientScriptIncludeRegistered(String) Determines whether the client script include is registered with the Page object using the specified key.
Public method IsClientScriptIncludeRegistered(Type, String) Determines whether the client script include is registered with the Page object using a key and type.
Public method IsOnSubmitStatementRegistered(String) Determines whether the OnSubmit statement is registered with the Page object using the specified key.
Public method IsOnSubmitStatementRegistered(Type, String) Determines whether the OnSubmit statement is registered with the Page object using the specified key and type.
Public method IsStartupScriptRegistered(String) Determines whether the startup script is registered with the Page object using the specified key.
Public method IsStartupScriptRegistered(Type, String) Determines whether the startup script is registered with the Page object using the specified key and type.
Public method RegisterArrayDeclaration Registers a JavaScript array declaration with the Page object using an array name and array value.
Public method RegisterClientScriptBlock(Type, String, String) Registers the client script with the Page object using a type, key, and script literal.
Public method 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.
Public method 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.
Public method RegisterClientScriptInclude(Type, String, String) Registers the client script include with the Page object using a type, a key, and a URL.
Public method RegisterClientScriptResource Registers the client script resource with the Page object using a type and a resource name.
Public method 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.
Public method 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.
Public method RegisterForEventValidation(PostBackOptions) Registers an event reference for validation with PostBackOptions.
Public method RegisterForEventValidation(String) Registers an event reference for validation with a unique control ID representing the client control generating the event.
Public method RegisterForEventValidation(String, String) Registers an event reference for validation with a unique control ID and event arguments representing the client control generating the event.
Public method RegisterHiddenField Registers a hidden value with the Page object.
Public method 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.
Public method RegisterStartupScript(Type, String, String) Registers the startup script with the Page object using a type, a key, and a script literal.
Public method 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method ValidateEvent(String) Validates a client event that was registered for event validation using the RegisterForEventValidation method.
Public method ValidateEvent(String, String) Validates a client event that was registered for event validation using the RegisterForEventValidation method.
Top
Show:
© 2014 Microsoft