protected void RegisterFooterScriptBlock(string name, string script, IEnumerable <string> depends = null) { FooterJavaScript.Add(new SiteResource() { IsInline = true, ResourceContent = script }); }
/// <summary> /// Called by child classes that want to register a footer JavaScript file to be placed at the bottom of the page, after all the main content in body. /// </summary> /// <param name="name"></param> /// <param name="url"></param> /// <param name="depends"></param> protected void RegisterFooterScript(string name, string url, IEnumerable <string> depends) { FooterJavaScript.Add(new SiteResource() { IsAssemblyResource = true, LocalUrl = calcBaseLocationName() + url }); }