private CreateScriptReference ( string localeKey, |
||
localeKey | string | |
scriptAssembly | ||
return | System.Web.UI.ScriptReference |
ScriptReference CreateScriptReference(string localeKey, Assembly scriptAssembly)
{
if(ToolkitAssembly == scriptAssembly)
return new ScriptReference(FormatScriptName(localeKey) + Constants.JsPostfix, ToolkitAssembly.FullName);
return new ScriptReference(GetCustomScriptName(localeKey) + GetScriptSuffix(), scriptAssembly.FullName);
}