/// <summary>Handles the Load event of the Page control.</summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs" /> instance containing the event data.</param> private void Page_Load(object sender, EventArgs e) { try { Utility.AddJQueryReference(); #if DEBUG Utility.AddJavaScriptResource(this.Page, "jquery.simplemodal"); Utility.AddJavaScriptResource(this.Page, "taf"); #else Utility.AddJavaScriptResource(this.Page, "taf.bundle"); #endif this.AddCssFile(); this.SetEmailValidation(); this.SetValidationGroupOnChildControls(); if (!this.IsPostBack) { this.PopulateUserInfo(); } this.SetupCaptchas(); this.ModuleWrap.Attributes["data-close-button-html"] = Localization.GetString("ModalCloseButton.Text", this.LocalResourceFile); this.SubmitButton.ToolTip = Localization.GetString("SubmitButtonToolTip.Text", this.LocalResourceFile); this.MessageRow.Visible = this.ShowMessage; this.ModalAnchorPanel.Visible = this.ShowInModal; this.FormWrapPanel.Style[HtmlTextWriterStyle.Display] = this.ModalAnchorPanel.Visible ? "none" : "block"; } catch (Exception exc) { Exceptions.ProcessModuleLoadException(this, exc); } }
/// <summary>Raises the <see cref="Control.Init" /> event.</summary> /// <param name="e">An <see cref="EventArgs" /> object that contains the event data.</param> protected override void OnInit(EventArgs e) { base.OnInit(e); Utility.AddJQueryReference(); this.RestoreButton.Click += this.RestoreButton_Click; }