asp.net.ph

TemplateControl.GetLocalResourceObject Method ( String )

System.Web Namespace   TemplateControl Class


.NET Framework version 2.0

Gets a page-level resource object based on the specified ResourceKey property.

[ VB ]
Protected Function GetLocalResourceObject ( _
   resourceKey As String _
) As Object

[ C# ]
protected Object GetLocalResourceObject (
   string resourceKey
)

[ C++ ]
protected:
Object^ GetLocalResourceObject (
   String^ resourceKey
)

[ JScript ]
protected Object GetLocalResourceObject (
   String resourceKey
)

Parameters

resourceKey
A string that represents the ResourceKey of the requested resource object.

Return Value

An object that represents the requested page-level resource object; otherwise, a null reference ( Nothing in Visual Basic ) is returned.

Exceptions


Exception Type Condition
InvalidOperationException The resource class for the page was not found.

Example

The following example illustrates using one of the overload versions of the GetLocalResourceObject method.

 Show me 

See Also

GetLocalResourceObject Method Overload List   TemplateControl Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note