System.Web.UI.TemplateControl.GetLocalResourceObject Method

Gets a page-level resource object based on the specified System.Web.Compilation.ResourceExpressionFields.ResourceKey property.

Syntax

protected object GetLocalResourceObject (string resourceKey)

Parameters

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

Returns

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

Remarks

Local resource files are stored in the App_LocalResources directory. 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