protected void Page_Load(object sender, EventArgs e) { _db = Global.GetDbConnection(); Response.Cache.SetCacheability(HttpCacheability.NoCache); AjaxServerMethodHandler.CheckAjaxCall(this); if (!Page.IsPostBack) { int?selectedSiteId; siteList.PopulatePageList(); selectedSiteId = siteList.GetSelectedSiteId(); if (selectedSiteId != null) { categoryList.PopulateCategoryList((int)selectedSiteId); } populateEventList(); } Global.AddCommonJavaScript(this); Page.ClientScript.RegisterClientScriptInclude("jquery-calendar", ResolveUrl("~/Scripts/jquery-calendar.pack.js")); Page.ClientScript.RegisterClientScriptInclude("jquery.listbox", ResolveUrl("~/Scripts/jquery.listbox.js")); Page.ClientScript.RegisterClientScriptInclude("json", ResolveUrl("~/Scripts/json.js")); Page.ClientScript.RegisterClientScriptInclude("local", ResolveUrl("Scripts.js")); //Register some child controls for javascript ((MasterPage)Master).ControlProxies.AddExtraControl("ddlSites", siteList.SiteDropDownList); ((MasterPage)Master).ControlProxies.AddExtraControl("ddlCategories", categoryList.CategoryDropDownList); }
protected void Page_Load(object sender, EventArgs e) { _db = Global.GetDbConnection(); Response.Cache.SetCacheability(HttpCacheability.NoCache); AjaxServerMethodHandler.CheckAjaxCall(this); if (!Page.IsPostBack) { populateQueueList(); } Global.AddCommonJavaScript(this); Page.ClientScript.RegisterClientScriptInclude("local", ResolveUrl("Default-Script.js")); }