/// <summary> /// Sets up the Modal Error Popup Dialog /// </summary> private void AddErrorPopup() { if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null) { // add error control... this.errorPopup = new PopupDialogNotification { ID = "YafForumPageErrorPopup1" }; this.ForumControl.Controls.Add(this.errorPopup); } else { // reference existing control... this.errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1"); } }
/// <summary> /// Sets up the Modal Error Popup Dialog /// </summary> private void AddErrorPopup() { if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null) { // add error control... this._errorPopup = new PopupDialogNotification { ID = "YafForumPageErrorPopup1", Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER") }; this.ForumControl.Controls.Add(this._errorPopup); } else { // reference existing control... this._errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1"); this._errorPopup.Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER"); } }
/// <summary> /// Sets up the Modal Error Popup Dialog /// </summary> private void AddErrorPopup() { if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null) { // add error control... this._errorPopup = new PopupDialogNotification { ID = "YafForumPageErrorPopup1" }; this.ForumControl.Controls.Add(this._errorPopup); } else { // reference existing control... this._errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1"); } }