//refreshes data list of comments protected void ShowComments(int audio_id) { pg = new PagedDataSource(); ds = Comments.GetCommentsByAudioId(audio_id); if (ds.Tables[0].Rows.Count > 0) { pg.AllowPaging = true; pg.DataSource = ds.Tables[0].DefaultView; pg.PageSize = 4; pg.CurrentPageIndex = this.currentpage; this.ImageButtonNextPage.Enabled = !pg.IsLastPage; this.ImageButtonPrevPage.Enabled = !pg.IsFirstPage; DataListComments.DataSource = pg; DataListComments.DataBind(); } }
//public override bool Visible //{ // get // { // return base.Visible; // } // set // { // base.Visible = value; // } //} public override void DataBind() { DataListComments.DataBind(); }
protected void LoadDataListComments() { DataListComments.DataSource = CommentsDAL.getComments(Global.PHOTO_ALBUM, Albumid); DataListComments.DataBind(); }