reading Resource file using GetGlobalResourceObject
I have two projects in vs2010. one sharepoint which deplyes a Resource file (AppGlobalResource).
When I use the following code in the sharepoint project, it runs well:
public static string GetResourceString(string messageCode)
{
var text = System.Web.HttpContext.GetGlobalResourceObject(ResourceFiles.Default, messageCode);
开发者_StackOverflow中文版 return text.ToString();
}
However if I use the C# code (which is included as reference in the sharepoint project) it does not work
精彩评论