protected override void RenderContents(HtmlTextWriter output) { if (Includes == null) { throw new ArgumentNullException("Types is empty", "Includes"); } var rendered = Context.Items["clinetScript" + string.Join(",", Includes.Select(r => r.ToString()))] as bool?; if (rendered.HasValue) { return; } output.Write("<script type=\"text/javascript\" src=\"{0}\"></script>", ClientScriptBundle.ResolveHandlerPath(Includes)); Context.Items["clinetScript" + Includes.Select(r => r.ToString())] = (bool?)true; }
public string GetLinks() { return(ClientScriptBundle.ResolveHandlerPath(Includes)); }