protected virtual void LoadSettings() { current = SiteUtils.GetCurrentSiteUser(); if (current != null) { news = WebUtils.ParseInt32FromQueryString("NewsID", news); author = KLAuthor.GetKLAuthorByUserID(current.UserId); if (author == null) { WebUtils.SetupRedirect(this, SiteRoot); } listcomment = KLNewsComment.GetPageByAuthor(1, 10000, out totalpage, author.AuthorID, approved, news, -1, -1); listviewComment.DataSource = listcomment.OrderBy(com => com.IsPublish); listviewComment.DataBind(); GeneralVariables.NameAuthor = current.Name; GeneralVariables.Level = author.LevelAuthor; } else { WebUtils.SetupRedirect(this, SiteRoot); } }
private void PopulateControls() { rptCommentTop.DataSource = KLNewsComment.GetPageByAuthor(pagecomment, pagesizecomment, out totalpagecomment, -1, 1, newsID, -1, -1); rptCommentTop.DataBind(); }
protected List <KLNewsComment> GetChildComments(int commentid) { return(KLNewsComment.GetPageByAuthor(pagecomment, pagesizecomment, out totalpagecomment, -1, 1, newsID, -1, commentid)); }