System.Web.UI.ClientScriptManager Members

The members of System.Web.UI.ClientScriptManager are listed below.

See Also: Inherited members from System.Object

Public Methods

GetCallbackEventReference(Control, string, 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, bool) : string

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(string, string, string, string, string, bool) : string

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.

GetCallbackEventReference(Control, string, string, string, string, bool) : string

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.

GetPostBackClientHyperlink(Control, string) : 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, bool) : 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 with the specified event arguments and Boolean indication whether to register the post back for event validation.

GetPostBackEventReference(PostBackOptions) : 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 System.Web.UI.PostBackOptions instance.

GetPostBackEventReference(Control, string) : 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, bool) : 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 System.Web.UI.PostBackOptions object. Optionally, registers the event reference for validation.

GetPostBackEventReference(Control, string, bool) : string

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.

GetWebResourceUrl(Type, string) : string

Gets a URL reference to a resource in an assembly.

IsClientScriptBlockRegistered(string) : bool

Determines whether the client script block is registered with the System.Web.UI.Page object using the specified key.

IsClientScriptBlockRegistered(Type, string) : bool

Determines whether the client script block is registered with the System.Web.UI.Page object using a key and type.

IsClientScriptIncludeRegistered(string) : bool

Determines whether the client script include is registered with the System.Web.UI.Page object using the specified key.

IsClientScriptIncludeRegistered(Type, string) : bool

Determines whether the client script include is registered with the System.Web.UI.Page object using a key and type.

IsOnSubmitStatementRegistered(string) : bool

Determines whether the OnSubmit statement is registered with the System.Web.UI.Page object using the specified key.

IsOnSubmitStatementRegistered(Type, string) : bool

Determines whether the OnSubmit statement is registered with the System.Web.UI.Page object using the specified key and type.

IsStartupScriptRegistered(string) : bool

Determines whether the startup script is registered with the System.Web.UI.Page object using the specified key.

IsStartupScriptRegistered(Type, string) : bool

Determines whether the startup script is registered with the System.Web.UI.Page object using the specified key and type.

RegisterArrayDeclaration(string, string)

Registers a JavaScript array declaration with the System.Web.UI.Page object using an array name and array value.

RegisterClientScriptBlock(Type, string, string)

Registers the client script with the System.Web.UI.Page object using a type, key, and script literal.

RegisterClientScriptBlock(Type, string, string, bool)

Registers the client script with the System.Web.UI.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 System.Web.UI.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 System.Web.UI.Page object using a type, a key, and a URL.

RegisterClientScriptResource(Type, string)

Registers the client script resource with the System.Web.UI.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, bool)

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(string)

Registers an event reference for validation with a unique control ID representing the client control generating the event.

RegisterForEventValidation(PostBackOptions)

Registers an event reference for validation with System.Web.UI.PostBackOptions.

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(string, string)

Registers a hidden value with the System.Web.UI.Page object.

RegisterOnSubmitStatement(Type, string, string)

Registers an OnSubmit statement with the System.Web.UI.Page object using a type, a key, and a script literal. The statement executes when the System.Web.UI.HtmlControls.HtmlForm is submitted.

RegisterStartupScript(Type, string, string)

Registers the startup script with the System.Web.UI.Page object using a type, a key, and a script literal.

RegisterStartupScript(Type, string, string, bool)

Registers the startup script with the System.Web.UI.Page object using a type, a key, a script literal, and a Boolean value indicating whether to add script tags.

ValidateEvent(string)

Validates a client event that was registered for event validation using the ClientScriptManager.RegisterForEventValidation(string) method.

ValidateEvent(string, string)

Validates a client event that was registered for event validation using the ClientScriptManager.RegisterForEventValidation(string, string) method.