private void BindDatalist(int currentpage) { pds.AllowPaging = true; pds.PageSize = 5; pds.CurrentPageIndex = currentpage; BuyerDSTableAdapters.V_LookEstimateTableAdapter estimateDA = new BuyerDSTableAdapters.V_LookEstimateTableAdapter(); DataTable estimateDT = estimateDA.GetDataByPhoneId(long.Parse(Request.QueryString["PhoneId"].ToString())); pds.DataSource = estimateDT.DefaultView; dlEstimate.DataSource = pds; dlEstimate.DataBind(); if (estimateDT.Rows.Count == 0) { lblNo.Visible = true; } else { lblNo.Visible = false; } }
private void BindDatalist(int currentpage) { pds.AllowPaging = true; pds.PageSize = 5; pds.CurrentPageIndex = currentpage; BuyerDSTableAdapters.V_LookEstimateTableAdapter estimateDA = new BuyerDSTableAdapters.V_LookEstimateTableAdapter(); DataTable estimateDT = estimateDA.GetDataByPhoneId(long.Parse(Request.QueryString["PhoneId"].ToString())); pds.DataSource = estimateDT.DefaultView; dlEstimate.DataSource = pds; dlEstimate.DataBind(); if (estimateDT.Rows.Count == 0) { lblNo.Visible = true; } else { lblNo.Visible = false; } }