在网站文件夹级别的不同全球化 [英] Different globalization at web site folders level

查看:90
本文介绍了在网站文件夹级别的不同全球化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我使用的是全球化的全局资源选项。我还为resourceProviderFactoryType创建了自定义库。



我的主站点web.config文件中有以下条目: -

On my web site, I am using Global Resource option of ‘Globalization’. I have also created my custom library for resourceProviderFactoryType.

I have following entry in my main site web.config file:-

<globalization  resourceProviderFactoryType= "LibName" uiCulture="auto" enableClientBasedCulture="true" />





在我的网站页面上,控件具有属性li ke



On my site pages, controls have Attributes like

Text="<%$ resources:Text, 271715 %>"

到目前为止工作正常。



但现在我们的要求是使用 App_LocalResources 对于我们主站点中的子文件夹,子文件夹中的以下页面可以具有

which are working fine till now.

But Now our requirement is to use "App_LocalResources" for a sub folder in our main site where pages below in the sub folder can have attributes like

"meta:resourcekey="lblHomeResource1""





虽然在子文件夹的web.config文件中我们有



Although in web.config file of the sub folder we have

<globalization uiCulture="en-US"/>

键,但它没有任何效果。

它使用 web.config 来自我们的主网站并忽略其子文件夹 web.conf ig 全球化的关键,

因此我们收到编译错误说

错误125方法或操作不是实施。



请为网站文件夹级别的不同全球化提供解决方案



谢谢。

Key, but it is not taking any effect.
It uses web.config from our main web-site and ignores its sub folder web.config key for globalization,
Thus we are getting compilation errors saying
"Error 125 The method or operation is not implemented."

Please provide solution for different globalization at web site folders level

Thanks.

推荐答案

资源:文字,271715%>
resources:Text, 271715 %>"

到目前为止工作正常。



但现在我们的要求是使用 App_LocalResources 作为我们主站点中的子文件夹,其中包含以下页面子文件夹可以具有类似

which are working fine till now.

But Now our requirement is to use "App_LocalResources" for a sub folder in our main site where pages below in the sub folder can have attributes like

"meta:resourcekey="lblHomeResource1""





尽管在web中我们的子文件夹的.config文件



Although in web.config file of the sub folder we have

<globalization uiCulture="en-US"/>

密钥,但它没有产生任何影响。

它从我们的主网站使用 web.config 并忽略它的子文件夹 web.config 全球化的关键,

因此我们收到编译错误说

错误125方法或操作未实现。



请为网站文件夹级别的不同全球化提供解决方案/>


谢谢。

Key, but it is not taking any effect.
It uses web.config from our main web-site and ignores its sub folder web.config key for globalization,
Thus we are getting compilation errors saying
"Error 125 The method or operation is not implemented."

Please provide solution for different globalization at web site folders level

Thanks.


这篇关于在网站文件夹级别的不同全球化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆