protected override void OnLoad(EventArgs e) { BasePage.AddJavascriptInclude(Page, BasePage.JQUERY_INCLUDE); BasePage.AddJavascriptInclude(Page, "Custom/RC/Utilities/FileUploader/jquery.uploadify.min.js"); BasePage.AddJavascriptInclude(Page, "Custom/RC/Utilities/FileUploader/swfobject.js"); BasePage.AddCssLink(Page, "Custom/RC/Utilities/FileUploader/uploadify.css"); }
protected void Page_Load(object sender, EventArgs e) { currentCampusID = -1; shouldWrapInList = bool.Parse(WrapInListSetting); injectJqueryUi = bool.Parse(IncludeJqueryUiSetting); if (injectJqueryUi) { BasePage.AddCssLink(Page, "~/Templates/cccev/007/css/jquery-ui-1.8.16.custom.css"); smpScripts.Scripts.Add(new ScriptReference("~/include/scripts/Custom/Cccev/lib/jquery-ui-1.8.13.min.js")); } if (CurrentPerson != null && CurrentPerson.PersonID != -1 && CurrentPerson.Campus != null) { currentCampusID = CurrentPerson.Campus.CampusId; } campuses = from l in new LookupType(SystemGuids.CAMPUS_LOOKUP_TYPE).Values select l; if (!IsPostBack) { InjectCustomScripts(); } }
protected void Page_Load(object sender, EventArgs e) { BasePage.AddJavascriptInclude(Page, "/Custom/JohnsonFerry/Scripts/jquery.blockUI.js"); BasePage.AddJavascriptInclude(Page, "/Custom/JohnsonFerry/Scripts/jquery.metadata.js"); //Required for setting inline options in tablesorter BasePage.AddJavascriptInclude(Page, "/Custom/JohnsonFerry/Scripts/jquery.tablesorter.min.js"); BasePage.AddCssLink(Page, "/Custom/JohnsonFerry/CSS/tablesorter.css"); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack && CssFileSetting.Trim() != string.Empty) { smpScripts.Scripts.Add(new ScriptReference(string.Format("~/{0}", BasePage.JQUERY_INCLUDE))); smpScripts.Scripts.Add(new ScriptReference("~/Templates/Cccev/liger/js/popover.js")); BasePage.AddCssLink(Page, CssFileSetting); } }
private void Page_Load(object sender, EventArgs e) { BasePage.AddCssLink(Page, CSSPathSetting); // jQuery MUST been loaded prior to these next few items.. BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/mustache.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/underscore.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/backbone.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/Cccev/Web/Scripts/centralaz.media.js"); }
protected void Page_Load(object sender, EventArgs e) { scheduleController = new ScheduleController(); GetSchedule(); btnDelete.Visible = blackoutDate != null; if (!Page.IsPostBack) { BasePage.AddCssLink(Page, "~/UserControls/Custom/Cccev/BaptismScheduler/css/BaptismScheduler.css"); ShowView(); } }
protected void Page_Load(object sender, EventArgs e) { scheduleController = new ScheduleController(); editEnabled = CurrentModule.Permissions.Allowed(OperationType.Edit, CurrentUser); BasePage.AddCssLink(Page, "~/UserControls/Custom/Cccev/BaptismScheduler/css/BaptismScheduler.css"); if (!Page.IsPostBack) { ShowView(); BindDropDownList(); } }
protected void Page_Load(object sender, EventArgs e) { GetSchedule(); SetDates(); if (!Page.IsPostBack) { BasePage.AddCssLink(Page, "~/UserControls/Custom/Cccev/BaptismScheduler/css/BaptismScheduler.css"); lbReport.Visible = ReportPathSetting.Trim() != Constants.NULL_STRING; BuildList(); } }
private void RegisterClientScripts() { BasePage.AddCssLink(Page, "~/UserControls/Custom/Cccev/Core/js/tinymce/editor.css"); BasePage.AddJavascriptInclude(Page, BasePage.JQUERY_INCLUDE); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/Cccev/Core/js/tinymce/tiny_mce.js"); // Add module-specific code through script manager to take advantage of client page lifecycle smpScripts.Scripts.Add(new ScriptReference("~/UserControls/Custom/Cccev/Core/js/editor.js")); if (richTextEnabled) { BasePage.AddCssLink(Page, StyleSelectCssSetting); } }
protected void Page_Load(object sender, EventArgs e) { BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/bootstrap.css")); BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/responsive.css")); BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/main.css")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/vendor/bootstrap.min.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/plugins.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/main.js")); //System.Web.UI.HtmlControls.HtmlGenericControl main_js = new System.Web.UI.HtmlControls.HtmlGenericControl(); //main_js.TagName = "script"; //main_js.Attributes.Add("type", @"text/javascript"); //main_js.Attributes.Add("src", ResolveUrl("/custom/johnsonferry/scripts/main.js")); //this.Page.Header.Controls.Add(main_js); }
protected override void OnInit(EventArgs e) { base.OnInit(e); // // Add in all the scripts we need. // BasePage.AddJavascriptInclude(Page, BasePage.JQUERY_INCLUDE); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/HDC/Misc/Includes/jquery.colorbox-min.js"); BasePage.AddCssLink(Page, "UserControls/Custom/HDC/Misc/Includes/colorbox.css"); // // Determine the family_id and load the controls for viewstate. // family_id = Convert.ToInt32(Request.QueryString["FAMILY_ID"]); LoadFamilyAddresses(family_id); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { lblLoginError.Visible = false; lblSignupError.Visible = false; } BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/mustache.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/underscore.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/backbone.min.js"); BasePage.AddJavascriptInclude(Page, "usercontrols/custom/cccev/web/scripts/centralaz.web.min.js"); BasePage.AddJavascriptInclude(Page, "usercontrols/custom/cccev/web/scripts/centralaz.facebook.min.js"); BasePage.AddCssLink(Page, "usercontrols/custom/cccev/web/css/forms.css"); GetState(); ihState.Value = state; }
protected void Page_Load(object sender, EventArgs e) { BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/bootstrap.css")); // Add styles here (i.e.: fixedToTop.css) that must cascade AFTER the standard bootstrap but BEFORE the // responsive stylesheet, as noted on the Twitter Bootstrap site at http://twitter.github.io/bootstrap/components.html BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/fixedToTop.css")); BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/responsive.css")); BasePage.AddCssLink(Page, ResolveUrl("/custom/johnsonferry/css/main.css")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/vendor/bootstrap.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/vendor/modernizr-2.6.2-respond-1.1.0.min.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/plugins.js")); BasePage.AddJavascriptInclude(Page, ResolveUrl("/custom/johnsonferry/scripts/main.js")); //System.Web.UI.HtmlControls.HtmlGenericControl main_js = new System.Web.UI.HtmlControls.HtmlGenericControl(); //main_js.TagName = "script"; //main_js.Attributes.Add("type", @"text/javascript"); //main_js.Attributes.Add("src", ResolveUrl("/custom/johnsonferry/scripts/main.js")); //this.Page.Header.Controls.Add(main_js); }
protected void Page_Load(object sender, EventArgs e) { if (CurrentPerson != null) { LoadFbAttributes(); } if (!connectedToFacebook && !hasOptedOut) { BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/mustache.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/underscore.min.js"); BasePage.AddJavascriptInclude(Page, "include/scripts/custom/cccev/lib/backbone.min.js"); BasePage.AddJavascriptInclude(Page, "usercontrols/custom/cccev/web/scripts/centralaz.web.min.js"); BasePage.AddJavascriptInclude(Page, "usercontrols/custom/cccev/web/scripts/centralaz.facebook.min.js"); BasePage.AddCssLink(Page, "usercontrols/custom/cccev/web/css/forms.css"); GetState(); ihState.Value = state; } }
protected void Page_Load(object sender, System.EventArgs e) { //phBreadCrumbs.Controls.Clear(); //phBreadCrumbs.Controls.Add(new LiteralControl(CurrentPortalPage.BreadCrumbs.ToString())); AddMetaTag("viewport", "width=device-width, initial-scale=1"); orgName.Text = CurrentOrganization.Name; //BasePage.AddCssLink(this.Page, CurrentPortal.BootstrapCSSInclude); BasePage.AddCssLink(this.Page, "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"); //BasePage.AddCssLink(this.Page, "css/bootstrap-social.css"); //BasePage.AddJavascriptInclude(this.Page, CurrentPortal.BootstrapJSInclude); //BasePage.AddJavascriptInclude(this.Page, "Include/MembersResponsive/bootstrap-hover-dropdown.min.js"); //BasePage.AddJavascriptInclude(this.Page, "Include/MembersResponsive/jquery.matchHeight-min.js"); //BasePage.AddJavascriptInclude(this.Page, "Include/MembersResponsive/template.js"); BasePage.AddJavascriptInclude(this.Page, "https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"); BasePage.AddJavascriptInclude(this.Page, "https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"); BasePage.AddJavascriptInclude(this.Page, "https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"); }
/// <summary> /// Initialize some of the page attributes and scripts. /// </summary> /// <param name="sender">Object causing this event to be triggered.</param> /// <param name="e">Parameters about the event.</param> protected void Page_Init(object sender, EventArgs e) { // // Request various javascript and CSS files to be included. // BasePage.AddJavascriptInclude(Page, BasePage.JQUERY_INCLUDE); BasePage.AddJavascriptInclude(Page, "include/scripts/jqueryui/js/jquery-ui-1.7.3.custom.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/HDC/Misc/Includes/jquery-ui-timepicker-addon.js"); BasePage.AddCssLink(Page, "include/scripts/jqueryui/css/custom-theme/jquery-ui-.custom.css"); // // Setup the document browser/uploader. // mdlDocuments.Title = "Select a Document"; mdlDocuments.Url = "DocumentBrowser.aspx?callback=selectDocument&DocumentTypeFilter=#documentTypeFilter#&SelectedID=#selectedID#&DocumentTypeID=#documentTypeID#"; mdlDocuments.Width = 310; mdlDocuments.Height = 200; mdlDocuments.JSFunctionName = "openChooseDocumentWindow(documentTypeFilter, selectedID, documentTypeID)"; // // Setup the lookup drop down list. // ddlTopicArea.Items.Add(new ListItem("", "-1")); String[] topicAreas = TopicAreaSetting.Split(','); foreach (String topicArea in topicAreas) { Lookup area = new Lookup(Convert.ToInt32(topicArea)); ddlTopicArea.Items.Add(new ListItem(area.Value, area.LookupID.ToString())); } // // Load the promotion into memory. // LoadRequest(); }
private void Page_Load(object sender, EventArgs e) { BasePage.AddCssLink(Page, CSSPathSetting); InsertTemplates(); }
/// <summary> /// Load in jQuery and CSS required to properly display this module. /// </summary> /// <param name="sender">The object that triggered this event.</param> /// <param name="e">Details about the event.</param> private void Page_Init(object sender, EventArgs e) { BasePage.AddJavascriptInclude(Page, "//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/HDC/Misc/Includes/jquery.rs.slideshow.min.js"); BasePage.AddCssLink(Page, "UserControls/Custom/HDC/Misc/Includes/DisplaySign.css"); }
private void RegisterScripts() { BasePage.AddJavascriptInclude(Page, ResolveUrl("/Custom/JohnsonFerry/Scripts/jquery.numericalscale.js")); BasePage.AddCssLink(Page, ResolveUrl("/Custom/JohnsonFerry/CSS/spiritualgiftsurvey.css")); }
protected void Page_Load(object sender, EventArgs e) { BasePage.AddCssLink(Page, "UserControls/Custom/WVC/MinPart/css/minpart_print.css"); var person = new Person(new Guid(Request.QueryString["guid"].ToString())); //user_name.Value = person.Logins[0].LoginID; firstName.Text = person.FirstName.ToString(); lastName.Text = person.LastName.ToString(); email.Text = person.Emails.FirstActive.ToString(); maritalStatus.Text = person.MaritalStatus.ToString(); gender.Text = person.Gender.ToString(); birthdate.Text = person.BirthDate.ToString(); foreach (PersonAddress address in person.Addresses) { if (address.Primary) { streetAddress1.Text = address.Address.StreetLine1.ToString(); streetAddress2.Text = address.Address.StreetLine2.ToString(); city.Text = address.Address.City.ToString(); zipCode.Text = address.Address.PostalCode.ToString(); state.Text = address.Address.State.ToString(); } } foreach (PersonPhone phone in person.Phones) { switch (phone.PhoneType.Value) { case "Main/Home": homePhone.Text = phone.Number.ToString(); break; case "Business": workPhone.Text = phone.Number.ToString(); break; case "Cell": cellPhone.Text = phone.Number.ToString(); cellsms.Text = phone.SMSEnabled.ToString(); break; default: break; } } foreach (Control field in this.Controls) { // check this out.. if (field.GetType() == typeof(Label)) { var tb = (Label)Convert.ChangeType(field, typeof(Label)); if (tb.Attributes["attid"] != null) { var pa = new PersonAttribute(person.PersonID, (int)Convert.ChangeType(tb.Attributes["attid"], typeof(int))); switch (Convert.ToString(pa)) { case "false": tb.Text = "No"; break; case "true": tb.Text = "Yes"; break; default: tb.Text = Convert.ToString(pa); break; } } } } }
protected void Page_Load(object sender, System.EventArgs e) { BasePage.AddJavascriptInclude(Page, "http://code.jquery.com/jquery-latest.min.js"); //BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/bbq.js"); //BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/inputs.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.xml2json.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery-ui-1.8.10.custom.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.cookie.js"); //BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.form.js"); //BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.form.wizard-3.0.5.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.inputmask.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/jquery.validate.min.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/tofsla_forms.js"); BasePage.AddJavascriptInclude(Page, "UserControls/Custom/WVC/MinPart/js/minpart_custom.js"); BasePage.AddCssLink(Page, "UserControls/Custom/WVC/MinPart/css/minpart_screen_custom.css", "screen"); // // Deal with redirects. // if (!Page.IsPostBack) { iRedirect.Value = string.Empty; if (Request.QueryString["requestpage"] != null) iRedirect.Value = string.Format("default.aspx?page={0}", Request.QueryString["requestpage"]); if (iRedirect.Value == string.Empty && Request.QueryString["requestUrl"] != null) iRedirect.Value = Request.QueryString["requestUrl"]; if (iRedirect.Value == string.Empty) iRedirect.Value = string.Format("default.aspx?page={0}", RedirectPageIDSetting); } var maritalStatuses = new LookupType(84); /*for (int i = 0; i < maritalStatuses.Values.Count; i++) { maritalStatus.Items.Add(Convert.ToString(maritalStatuses.Values[i])); }*/ for (int i = Convert.ToInt16(DateTime.Now.Year)-120; i <= Convert.ToInt16(DateTime.Now.Year); i++) { birthYear.Items.Add(Convert.ToString(i)); } signedYear.Items.Add(Convert.ToString(DateTime.Now.Year)); var person = new Person(ArenaContext.Current.Person); print.HRef = String.Join("",new String[] {ArenaContext.Current.ServerUrl,"/default.aspx?page=",PrintPageIDSetting.ToString(),"&guid=",ArenaContext.Current.Person.Guid.ToString()} ); postLocation.Value = String.Join("", new String[] {ArenaContext.Current.ServerUrl,"/default.aspx?page=",RedirectPageIDSetting.ToString()} ); user_name.Value = person.Logins[0].LoginID; firstName.Value = person.FirstName; lastName.Value = person.LastName; email.Value = person.Emails.FirstActive; maritalStatus.Value = person.MaritalStatus.ToString(); gender.Value = person.Gender.ToString(); birthYear.Value = person.BirthDate.Year.ToString(); birthMonth.Value = person.BirthDate.Month.ToString(); birthDay.Value = person.BirthDate.Day.ToString(); socialsecurity.Value = person.SSN.ToString(); foreach (PersonAddress address in person.Addresses) { if (address.Primary) { streetAddress1.Value = address.Address.StreetLine1; streetAddress2.Value = address.Address.StreetLine2; city.Value = address.Address.City; zipCode.Value = address.Address.PostalCode; state.Value = address.Address.State; } } foreach (PersonPhone phone in person.Phones) { switch (phone.PhoneType.Value) { case "Main/Home": homePhone.Value = phone.Number; break; case "Business": workPhone.Value = phone.Number; break; case "Cell": cellPhone.Value = phone.Number; cellsms.Checked = phone.SMSEnabled; break; default: break; } } foreach (Control field in this.Controls) { // check this out.. if (field.GetType() == typeof(HtmlInputText)) { var tb = (HtmlInputText)Convert.ChangeType(field, typeof(HtmlInputText)); if (tb.Attributes["attid"] != null) { var pa = new PersonAttribute(person.PersonID, (int)Convert.ChangeType(tb.Attributes["attid"], typeof(int))); tb.Value = Convert.ToString(pa); } } else if (field.GetType() == typeof(HtmlTextArea)) { var tb = (HtmlTextArea)Convert.ChangeType(field, typeof(HtmlTextArea)); if (tb.Attributes["attid"] != null) { var pa = new PersonAttribute(person.PersonID, (int)Convert.ChangeType(tb.Attributes["attid"], typeof(int))); tb.Value = Convert.ToString(pa); } } else if (field.GetType() == typeof(HtmlInputRadioButton)) { var tb = (HtmlInputRadioButton)Convert.ChangeType(field, typeof(HtmlInputRadioButton)); if (tb.Attributes["attid"] != null) { var pa = new PersonAttribute(person.PersonID, (int)Convert.ChangeType(tb.Attributes["attid"], typeof(int))); if ((pa.IntValue == 1) && (tb.Value == "Yes")) { tb.Attributes["checked"] = Convert.ToString(pa); } else if ((pa.IntValue == 0) && (tb.Value == "No")) { tb.Attributes["checked"] = Convert.ToString(pa); } } } } }
private void RegisterScripts() { BasePage.AddJavascriptInclude(Page, ResolveUrl("/Custom/JohnsonFerry/Scripts/ChurchonlineCountdown.js")); BasePage.AddCssLink(Page, ResolveUrl(CssFileSetting)); }