Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ScriptResourceAttribute::ScriptResourceName Property

 
Note: This API is now obsolete.

Gets the name of the resource file for the script library.

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

public:
[ObsoleteAttribute("This property is obsolete. Use StringResourceName instead.")]
property String^ ScriptResourceName {
	String^ get();
}

Property Value

Type: System::String^

The name of the resource file for the script library.

The following example shows a ScriptResourceAttribute attribute for a script file named CheckAnswer.js that uses resources from the VerificationResources resource files. The name Answer is used to reference these resources. In this example, the ScriptResourceName property returns "LocalizingResources.VerificationResources". The file name extension is not included when you define the ScriptResourceName.

No code example is currently available or this language may not be supported.

The following example shows how to use the resources in client script. The resource keys (Correct and Incorrect) are prefixed with Answer to identify the script resource definition that contains the values.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft