/// <summary> /// Handles the SelectedCategoryChanged event of the ucPublicationCategory control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Labitec.LeadForce.Portal.Main.Discussions.UserControls.ActivityRibbon.PublicationCategory.SelectedCategoryChangedEventArgs"/> instance containing the event data.</param> protected void ucPublicationCategory_SelectedCategoryChanged(object sender, PublicationCategory.SelectedCategoryChangedEventArgs e) { if (Page.IsPostBack) { Session["Portal-Discussion-CategoryId"] = e.SelectedCategory; Response.Redirect(UrlsData.LFP_Discussions(PortalSettingsId)); } }
/// <summary> /// Handles the SelectedCategoryChanged event of the ucPublicationCategory control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Labitec.LeadForce.Portal.Main.Discussions.UserControls.ActivityRibbon.PublicationCategory.SelectedCategoryChangedEventArgs"/> instance containing the event data.</param> protected void ucPublicationCategory_SelectedCategoryChanged(object sender, PublicationCategory.SelectedCategoryChangedEventArgs e) { CategoryId = e.SelectedCategory; if (CategoryId != Guid.Empty) { Response.Redirect(UrlsData.LFP_KnowledgeBase(PortalSettingsId, CategoryId)); } else { Response.Redirect(UrlsData.LFP_KnowledgeBase(PortalSettingsId)); } }
/// <summary> /// Handles the SelectedCategoryChanged event of the ucPublicationCategory control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="WebCounter.AdminPanel.UserControls.ActivityRibbon.PublicationCategory.SelectedCategoryChangedEventArgs"/> instance containing the event data.</param> protected void ucPublicationCategory_SelectedCategoryChanged(object sender, PublicationCategory.SelectedCategoryChangedEventArgs e) { ucCreatePublication.PublicationCategoryId = e.SelectedCategory; ucPublicationsRibbon.PublicationCategoryId = e.SelectedCategory; ucPublicationsRibbon.BindData(); }