System.Web.UI.TemplateControl.GetGlobalResourceObject Method

Gets an application-level resource object based on the specified System.Web.Compilation.ResourceExpressionFields.ClassKey and System.Web.Compilation.ResourceExpressionFields.ResourceKey properties.

Syntax

protected object GetGlobalResourceObject (string className, string resourceKey)

Parameters

className
A string representing a System.Web.Compilation.ResourceExpressionFields.ClassKey.
resourceKey
A string representing a System.Web.Compilation.ResourceExpressionFields.ResourceKey.

Returns

An object representing the requested resource object; otherwise, null.

Remarks

Application-level resources are stored in the App_GlobalResources folder. For more information, see Resources in ASP.NET Applications.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0