private void Page_Load(System.Object sender, System.EventArgs e)
        {
            ScriptController.InjectjQueryLibary(Page, false, false);
            ScriptController.InjectCssReference(Page, "mobiscroll", ResolveUrl("Resources/mobiscroll-1.6.min.css"), true, ScriptController.CssInjectOrder.f_Last);
            ScriptController.InjectJsLibrary(Page, "mobiscroll_js", ResolveUrl("Resources/mobiscroll-1.6.min.js"), false, ScriptController.ScriptInjectOrder.e_Default);

            var sb = new System.Text.StringBuilder();

            sb.AppendLine("<script type=\"text/javascript\">");
            sb.AppendLine("$(document).ready(function () {");
            sb.AppendLine(string.Format("$(\'#{0}\').scroller({{ preset: \'{1}\' , theme: \'{2}\', mode: \'{3}\' }});", txtMobiscroll.ClientID, MobiscrollSettings().Preset, MobiscrollSettings().Theme, MobiscrollSettings().Mode));
            sb.AppendLine("});");
            sb.AppendLine("</script>");

            Page.ClientScript.RegisterClientScriptBlock(GetType(), Unique("Mobiscroll"), sb.ToString());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                //note page load runs after LoadSettings(); because of dynamic control loading

                //now get the javascript in
                ScriptController.InjectjQueryLibary(this.Page, true, true);
                //module-specific jquery code
                ScriptController.InjectJsLibrary(this.Page, "nap", this.ControlPath + "/js/nap.js", true, ScriptController.ScriptInjectOrder.e_Default);
                //and get the css file in
                ScriptController.InjectCssReference(this.Page, "nap_css", this.ControlPath + "/newsarticlesprovider.css", true, ScriptController.CssInjectOrder.f_Last);
                //and put in a pre-dnn 6 ui script plus the jquery tabs library
                string preDnn6CssFile = this.ControlPath + "/ui-tabs.css";
                ScriptController.InjectjQueryTabsCss(this.Page, preDnn6CssFile, null);
            }
            catch (Exception ex)
            {
                DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(this, ex);
            }
        }