jjzjj

GetResourceSet

全部标签

c# - 为什么 ResourceManager.GetResourceSet 在构建后的第一个请求中返回 null? (C#)

我正在开发一个用C#(asp.net)构建的大型Web应用程序。我有一个简单的aspx页面,它向客户端浏览器提供本地化字符串以供在javascript控件中使用。要获取字符串,我执行以下操作:ResourceManager_resources=newResourceManager(_pathname,typeof(ARM).Assembly);ResourceSetrs=_resources.GetResourceSet(culture,false,false);//loopthroughrsandwritethekeys&valuesouttotheclientinplaintext