0
I have a NullReferenceException
in this line:
string from = HttpContext.GetGlobalResourceObject("globalization", "mail_from").ToString();
because it is not finding the file . resx, so it does not find the "mail_from" and gives ToString()
null.
I have the file in the folder App_globalresources, called globalization.en.resx.
Use
Resources.globalization.ResourceManager.GetString("mail_from")
works?– Jéf Bueno
@jbueno It worked, took advantage and created a separate class to handle and facilitate the string search, thank you very much :). If you want to make an answer I can put as answered..
– Artur Trapp
Not at all, I added the answer.
– Jéf Bueno