/// <summary> /// Get JavaScript escaped resource string from App_GlobalResources/Common.resx /// </summary> public static string CommonResourceJs(this HtmlHelper htmlhelper, string expression, params object[] args) { var themeClass = themeNamesProvider.GetCurrentThemeName() + "Common,"; var resource = LocalizationHelpers.ResourceJavascript(htmlhelper, themeClass + expression, args); return(String.IsNullOrEmpty(resource) ? LocalizationHelpers.ResourceJavascript(htmlhelper, "Common," + expression, args) : resource); }