Beispiel #1
0
 public Incremental.Kick.Dal.CommentCollection CommentRecords()
 {
     if (colCommentRecords == null)
     {
         colCommentRecords = new Incremental.Kick.Dal.CommentCollection().Where(Comment.Columns.StoryID, StoryID).Load();
     }
     return(colCommentRecords);
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     //TODO Will need to modify the Comment & CommentList web controls to show related story
     this.UserProfileHeader.User = this.UserProfile;
     Incremental.Kick.Dal.CommentCollection commentTable = StoryCache.GetUserComments(this.UrlParameters.UserIdentifier, this.HostProfile.HostID, this.UrlParameters.PageNumber, this.UrlParameters.PageSize);
     this.CommentList.DisplayStoryTitle = true;
     this.CommentList.DataBind(commentTable);
     this.Paging.RecordCount = StoryCache.GetUserCommentsCount(this.UrlParameters.UserIdentifier, this.HostProfile.HostID);
     this.Paging.PageNumber  = UrlParameters.PageNumber;
     this.Paging.PageSize    = UrlParameters.PageSize;
     this.Paging.BaseUrl     = UrlFactory.CreateUrl(this.PageName, this.UrlParameters.UserIdentifier);
 }