/// <summary> /// The application_ start. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> protected virtual void Application_Start(object sender, EventArgs e) { // Pass a delegate to the Configure method. GlobalConfiguration.Configure(WebApiConfig.Register); ScriptManagerHelper.RegisterJQuery(); }
protected override void OnPreRender(EventArgs e) { SetButtonProperties(); SetMonthViewProperties(); ScriptManagerHelper.RegisterControlScripts(this); base.OnPreRender(e); }
protected override void Render(HtmlTextWriter output) { if (base.DesignMode) { this.designRender(output); return; } output.AddAttribute("id", this.ClientID); output.RenderBeginTag("div"); output.RenderEndTag(); JsInitNavigator jsInitNavigator = new JsInitNavigator(this); ScriptManagerHelper.RegisterStartupScript(this, typeof(HMSNavigator), this.ClientID + "object", jsInitNavigator.GetCode(), false); }
protected override void CreateChildControls() { Controls.Clear(); ScriptManagerHelper.RegisterCallbackScripts(this); CreateTextBox(); CreateOpenButton(); CreateMonthView(); Controls.Add(datebox); Controls.Add(mv); Controls.Add(openButton); base.CreateChildControls(); }
protected override void OnLoad(EventArgs e) { string text = this.Context.Request.Params[this.ClientID + "_state"]; if (!string.IsNullOrEmpty(text)) { JsonData jsonData = SimpleJsonDeserializer.Deserialize(text); this.StartDate = (DateTime)jsonData["startDate"]; DateTime selectionStart = (DateTime)jsonData["selectionStart"]; this.SelectionStart = selectionStart; DateTime arg_69_0 = this.SelectionStart; } ScriptManagerHelper.RegisterClientScriptInclude(this, typeof(HMSCalendar), "common.js", this.GetResourceUrl("Common.js")); ScriptManagerHelper.RegisterClientScriptInclude(this, typeof(HMSNavigator), "navigator.js", this.GetResourceUrl("Navigator.js")); if (!string.IsNullOrEmpty(this.BoundHMSID) && !string.IsNullOrEmpty(this.BoundHMSClientObjectName)) { throw new ArgumentException("You can specify either BoundHMSID or BoundHMSClientObjectName but not both."); } if (!string.IsNullOrEmpty(this.BoundHMSID)) { this.boundCalendar = this.findCalendar(this.BoundHMSID); } base.OnLoad(e); }
/// <summary> /// The register bundles. /// </summary> public static void RegisterBundles() { ScriptManagerHelper.RegisterJQuery(); }