AjaxControlToolkit.Jasmine.Suites.ToolkitResourceManagerTests.Bundling.Page_Init C# (CSharp) Метод

Page_Init() защищенный Метод

protected Page_Init ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
        protected void Page_Init(object sender, EventArgs e)
        {
            var scriptManager = ScriptManager.GetCurrent(Page);
            ScriptManager.ScriptResourceMapping.AddDefinition("MicrosoftAjaxWebForms.js", new ScriptResourceDefinition {
                Path = "~/Scripts/MicrosoftAjaxWebForms.js"
            });
            ScriptManager.ScriptResourceMapping.AddDefinition("MicrosoftAjax.js", new ScriptResourceDefinition {
                Path = "~/Scripts/MicrosoftAjax.js"
            });

            scriptManager.Scripts.Add(new ScriptReference("~/Scripts/AjaxControlToolkit/Bundle"));
        }