protected Page_Init ( object sender, EventArgs e ) : void | ||
sender | object | |
e | EventArgs | |
return | 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"));
}