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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph