protected void Page_Load(object sender, EventArgs e) { ForumManager.Instance.SetCurrentPage(ForumPage.EditTopic); _topicEditorControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/TopicEditorControl.ascx") as TopicEditorControl; _topicEditorControl.SettingsID = ForumManager.Settings.ID; topicEditorHolder.Controls.Add(_topicEditorControl); }
protected void Page_Load(object sender, EventArgs e) { if (SetupInfo.WorkMode == WorkMode.Promo) { Response.Redirect(ForumManager.BaseVirtualPath + "/default.aspx"); } ForumManager.Instance.SetCurrentPage(ForumPage.EditTopic); _topicEditorControl = LoadControl(ForumManager.Settings.UserControlsVirtualPath + "/TopicEditorControl.ascx") as TopicEditorControl; _topicEditorControl.SettingsID = ForumManager.Settings.ID; topicEditorHolder.Controls.Add(_topicEditorControl); }