ScriptManager.EnableScriptLocalization 屬性

定義

取得或設定值,該值表示 ScriptManager 控制項是否呈現當地語系化版本的指令碼檔。

public:
 property bool EnableScriptLocalization { bool get(); void set(bool value); };
public bool EnableScriptLocalization { get; set; }
member this.EnableScriptLocalization : bool with get, set
Public Property EnableScriptLocalization As Boolean

屬性值

Boolean

如果將呈現當地語系化的指令碼檔,則為 true,否則為 false。 預設值是 true

備註

EnableScriptLocalization當 屬性設定為 true 時, ScriptManager 如果物件存在,則會擷取目前文化特性的腳本檔案。 例如,頁面可能會指定名為 CustomScript.js 的腳本檔案。 如果文化特性設定為 fr-CA, ScriptManager 物件會嘗試擷取名為 CustomScript.fr-CA.js的腳本檔案。

注意

若要防止腳本檔案轉譯兩次, EnableScriptLocalization 屬性不得在非同步回傳期間修改。

適用於

另請參閱