Exemplo n.º 1
0
 protected void rptReviews_Populate(Guid ID, bool bFilterByChapter)
 {
     //make a new ReviewList called rvwList
     ReviewList rvwList = new ReviewList();
     //if statement that will run if bFilterByChapter is equal to 'true'
     if (bFilterByChapter == true)
     {
         //get the reviewlist by chapter
         rvwList = rvwList.GetByChapterID(ID);
     }
     //else bFilterByChapter is equal to 'false'
     else
     {
         //get the reviewlist by story
         rvwList = rvwList.getByStoryID(ID);
     }
     //bind the list to the repeater
     rptReviews.DataSource = rvwList.List;
     rptReviews.DataBind();
 }