ScriptManager.EnableScriptGlobalization 属性
定义
获取或设置一个值,该值指示 ScriptManager 控件是否呈现支持分析和格式化区域性特定的信息的脚本。Gets or sets a value that indicates whether the ScriptManager control renders script that supports parsing and formatting of culture-specific information.
public:
property bool EnableScriptGlobalization { bool get(); void set(bool value); };
public bool EnableScriptGlobalization { get; set; }
member this.EnableScriptGlobalization : bool with get, set
Public Property EnableScriptGlobalization As Boolean
属性值
如果可以显示区域性特定的信息,则为 true;否则为 false。true if culture-specific information can be displayed; otherwise, false. 默认值是 false。The default value is false.
注解
当 EnableScriptGlobalization 属性设置为时 true ,全球化 ECMAScript (JavaScript) 函数,例如 Date.localeFormat 方法显示特定于区域性的信息。When the EnableScriptGlobalization property is set to true, globalized ECMAScript (JavaScript) functions such as the Date.localeFormat method display culture-specific information. 可以在浏览器、服务器代码或网站的配置文件中设置区域性。The culture can be set in the browser, in server code, or in the Web site's configuration file.