private void LoadProductInfo(string _LoadIds, int PageNo) { try { dvProduct.Visible = true; pageSize = 10; CurrentPageR = PageNo; int count = 0; gvAllProduct.DataSource = Loads.GetProductsInfoByLoadIds(_LoadIds, PageNo, pageSize, out count, CatId); gvAllProduct.DataBind(); gvAllProduct.PageSize = count; this.TotalItemsR = count; this.pgrProduct.DrawPager(PageNo, TotalItemsR, pageSize, MaxPagesToShow); } catch (Exception ex) { new SqlLog().InsertSqlLog(0, "AddDeliveryNotes.aspx.cs LoadProductInfo", ex); } }