Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RegisteredScript Class
Collapse the table of content
Expand the table of content

RegisteredScript Class

Provides access to a client script that was previously registered with the Page object.


Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public sealed class RegisteredScript

The RegisteredScript type exposes the following members.

Public propertyAddScriptTagsGets a value that indicates whether the script block should be rendered on the Web page enclosed in <script> tags.
Public propertyControlGets the control that registered the script.
Public propertyKeyGets the key that, together with the Type value, identifies the script.
Public propertyScriptGets the file name of the script.
Public propertyScriptTypeGets the script type that indicates when the script is intended to be executed.
Public propertyTypeGets the client script type that, together with the Key value, identifies the script.
Public propertyUrlGets the URL of the script file.

Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

A client script is uniquely identified by its key and its type. Only one script with a given key/type pair can be registered with a page.

Client scripts are not guaranteed to be output in the order that they are registered in.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft