Example #1
0
        /// <summary>
        /// 绑定收藏夹
        /// </summary>
        protected void bindMyLightBox(int pageSize,int pageIndex)
        {
            string lightboxId = this.ddlMyLightBox.SelectedValue;
            if (!string.IsNullOrEmpty(lightboxId))
            {

                
                Resource r = new Resource();
                DataSet ds=r.GetResourcesByLightBoxID(new Guid(lightboxId),pageSize,pageIndex);
                this.drMyFavorite.DataSource = ds.Tables[0];
                this.drMyFavorite.DataBind();

                int count = Convert.ToInt32(ds.Tables[1].Rows[0][0].ToString());
                this.lightboxRowCount.Text = count.ToString();

                this.MyLightBoxDownload.Visible = (count>0);
                this.MyLightBoxDownload1.Visible = this.MyLightBoxDownload.Visible;
                this.MyLightBoxDownload.NavigateUrl = "MyLightBoxDownload.aspx?id="+lightboxId;
                this.MyLightBoxDownload1.NavigateUrl = this.MyLightBoxDownload.NavigateUrl;


                this.AspNetPagerLightBox.RecordCount = count;
            
            }
        }