string value = GetLocalResourceObject(myMagicString)?.ToString();
If you have SomethingFunAndMagic.Text as a line item in your resource then "SomethingFunAndMagic.Text" needs to be in the myMagicString variable here to retrieve a resource in the traditional web forms flavored way. The DotNetNuke way of doing things would allow you to just hand in "SomethingFunAndMagic" and it would append the ".Text" for you.
No comments:
Post a Comment