calling 'GetLocalResourceObject' from a nested class

A

ANeelima

I am using C# and I created an .aspx page and the corresponding .aspx.cs code
behind file. In the code behind file I have the following class structure

public partial class myclass : page
{

private class nestedclass : myclass
{
public string getResourceString()
{

}
}
}

The nested class has a publi method which attempts to call
'GetLocalResourceObject' and passes in the resource key. When I call
'GetLocalResourceObject' from the nested class, it does not work and throws
me the following error:

"Object reference not set to an instance of an object."

But, when I call the method from the main class itself (myclass), it works
fine. So, how can I call localization methods from a nested class??

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top