Gets the name that is used when retrieving the values in the resource file.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Theproperty contains the value that is used for retrieving localized resources in client script. The client script must include the value and the key name for the resource to be localized.
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 property returns "Answer".
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.
Available since 3.5