private void Bind()
        {
            GetSearchItem();

            int totalRecords       = 0;
            PictureServiceItem bll = new PictureServiceItem();

            rpData.DataSource = bll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
            rpData.DataBind();

            myDataAppend += "<div id=\"myDataForPage\" style=\"display:none;\">[{\"PageIndex\":\"" + pageIndex + "\",\"PageSize\":\"" + pageSize + "\",\"TotalRecord\":\"" + totalRecords + "\",\"QueryStr\":\"" + queryStr + "\"}]</div>";
        }
        private void Bind()
        {
            if (!string.IsNullOrEmpty(funName))
            {
                int totalRecords = 0;
                switch (funName)
                {
                case "AdvertisementPicture":
                    AdvertisementPicture adpBll = new AdvertisementPicture();
                    rpData.DataSource = adpBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureBrand":
                    PictureBrand pbBll = new PictureBrand();
                    rpData.DataSource = pbBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureCategory":
                    PictureCategory pcBll = new PictureCategory();
                    rpData.DataSource = pcBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureProduct":
                    PictureProduct ppBll = new PictureProduct();
                    rpData.DataSource = ppBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureProductSize":
                    PictureProductSize ppsBll = new PictureProductSize();
                    rpData.DataSource = ppsBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureServiceItem":
                    PictureServiceItem psiBll = new PictureServiceItem();
                    rpData.DataSource = psiBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureServiceVote":
                    PictureServiceVote psvBll = new PictureServiceVote();
                    rpData.DataSource = psvBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureServiceLink":
                    PictureServiceLink pslBll = new PictureServiceLink();
                    rpData.DataSource = pslBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                case "PictureServiceContent":
                    PictureServiceContent pscBll = new PictureServiceContent();
                    rpData.DataSource = pscBll.GetList(pageIndex, pageSize, out totalRecords, sqlWhere, parms == null ? null : parms.ToArray());
                    rpData.DataBind();
                    break;

                default:
                    break;
                }

                myDataAppend.Replace("{TotalRecord}", totalRecords.ToString());
                myDataAppend.Replace("{PageIndex}", pageIndex.ToString());
                myDataAppend.Replace("{PageSize}", pageSize.ToString());
            }
        }