ScriptManager.EnableScriptLocalization Propriedade
Definição
Obtém ou define um valor que indica se o controle ScriptManager renderiza versões localizadas dos arquivos de script.Gets or sets a value that indicates whether the ScriptManager control renders localized versions of script files.
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
Valor da propriedade
true para renderizar os arquivos de script localizados; caso contrário, false.true if localized script files will be rendered; otherwise, false. O valor padrão é true.The default value is true.
Comentários
Quando a EnableScriptLocalization propriedade for definida como true , o ScriptManager objeto recuperará os arquivos de script para a cultura atual, se existirem.When the EnableScriptLocalization property is set to true, the ScriptManager object will retrieve script files for the current culture if they exist. Por exemplo, uma página pode especificar um arquivo de script chamado CustomScript.js.For example, a page might specify a script file that is named CustomScript.js. Se a cultura for definida como fr-CA, o ScriptManager objeto tentará recuperar um arquivo de script chamado CustomScript.fr-CA.js.If the culture is set to fr-CA, the ScriptManager object will try to retrieve a script file that is named CustomScript.fr-CA.js.
Observação
Para impedir que um arquivo de script seja renderizado duas vezes, a EnableScriptLocalization propriedade não deve ser modificada durante um postback assíncrono.To prevent a script file from being rendered two times, the EnableScriptLocalization property must not be modified during an asynchronous postback.