Ejemplo n.º 1
0
 //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();
     }
 }
Ejemplo n.º 2
0
        //public override bool Visible
        //{
        //    get
        //    {
        //        return base.Visible;
        //    }
        //    set
        //    {
        //        base.Visible = value;
        //    }
        //}

        public override void DataBind()
        {
            DataListComments.DataBind();
        }
Ejemplo n.º 3
0
 protected void LoadDataListComments()
 {
     DataListComments.DataSource = CommentsDAL.getComments(Global.PHOTO_ALBUM, Albumid);
     DataListComments.DataBind();
 }