|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
namespace SigmaToolBox
{
/// <summary>
/// Registration responsible
/// </summary>
internal class Registrar
{
/// <summary>
/// Registers list of scripts on page
/// </summary>
/// <param name="ScriptsList"></param>
/// <param name="CurrentPage"></param>
/// <param name="ThisType"></param>
internal static void RegisterScripts(List<string> ScriptsList, Page CurrentPage, Type ThisType)
{
foreach (string script in ScriptsList)
{
CurrentPage.ClientScript.RegisterClientScriptInclude(ThisType, script + "_Key", CurrentPage.ClientScript.GetWebResourceUrl(ThisType, script));
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a PhD candidate in computer science. I started software development since 2006 and it seems like now it consumes most every part of my life. My life is my computer and solving problems, more specifically computational-mathematical problems, is my passion.I mostly enjoy areas like Machine Learning, Big Data and Brain-Computer Interface (BCI). My major goal in my life is becoming a person who utilizes everything he knows to improve human life quality. I also like hiking and reading self-development books.