protected override void Render(HtmlTextWriter writer) { UserController uc = new UserController(); forumUser = uc.GetUser(PortalId, ModuleId); Controls.ForumContent fd = new Controls.ForumContent(); fd.ModuleId = ModuleId; fd.TabId = TabId; fd.PortalId = PortalId; fd.ForumUser = forumUser; fd.ForumId = ForumId; fd.ForumGroupId = ForumGroupId; fd.ParentForumId = ParentForumId; fd.IncludeClasses = IncludeClasses; if (HttpContext.Current.Request.QueryString[ParamKeys.TopicId] != null) { fd.TopicId = int.Parse(HttpContext.Current.Request.QueryString[ParamKeys.TopicId]); } if (ItemTemplate != null) { fd.ItemTemplate = ItemTemplate.Text; } if (HeaderTemplate != null) { fd.HeaderTemplate = HeaderTemplate.Text; } if (FooterTemplate != null) { fd.FooterTemplate = FooterTemplate.Text; } writer.Write(fd.Render()); }