Friday, October 9, 2015

Grabbing ahold of a resource in regular web forms varies from grabbing a hold of a resource in DotNetNuke implementations.

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