Geeks With Blogs
Jeroen Bourdeaud'hui web application developer
Long time no see.

For example you want to sent an automatic email in ASP.NET. But your culture is "en-GB" and the language of the person you want to email is Spanish("es-ES").
Then you want to use the Spanish resource files, while creating the mailMessage.

You can use the Spanish resource file by using the HttpContext.GetGlobalResourceObject method.

Dim sLabel As String = HttpContext.GetGlobalResourceObject("myResourceFile", "myKey", New CultureInfo("es-ES")) 


More information:
http://msdn.microsoft.com/en-us/library/ms149948.aspx Posted on Thursday, July 9, 2009 2:50 PM asp.net | Back to top


Comments on this post: Use another resourceobject, then the culture specified resourceobject.

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Jeroen Bourdeaud'hui | Powered by: GeeksWithBlogs.net