protected void Page_Load(object sender, EventArgs e)
        {
            strPageNo = Request["PageNo"];
            try
            {
                PageNo = Convert.ToInt32(strPageNo);
            }
            catch
            {
            }
            if (PageNo == 0)
            {
                PageNo = 1;
            }

            BOLNews NewsBOL = new BOLNews();

            IQueryable <News> ItemList = NewsBOL.GetImageGallery(PageSize, PageNo);
            int ResultCount            = NewsBOL.GetImageGalleryCount();

            rptImageGallery.DataSource = ItemList;
            rptImageGallery.DataBind();

            ConcatUrl = "";
            int PageCount = ResultCount / PageSize;

            if (ResultCount % PageSize > 0)
            {
                PageCount++;
            }
            pgrToolbar.PageNo    = PageNo;
            pgrToolbar.PageCount = PageCount;
            pgrToolbar.ConcatUrl = ConcatUrl;
            pgrToolbar.PageBind();
        }