/// <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> protected void Page_Load(object sender, EventArgs e) { Guid?id = RequestGuidId; if (!id.HasValue) { Redirector.GoToPublicDefaultPage(); return; } Knowledge knowledge = KbContext.CurrentKb.ManagerKnowledge.GetByPublicID(id.Value); if (knowledge == null) { Redirector.GoToPublicDefaultPage(); return; } viewKnowledge.Knowledge = knowledge; }