private void GetCartedProducts(int userID) { ECommerceBusiness ecb = new ECommerceBusiness(); DataTable dt = ecb.GetAllCartedProducts(userID); if (dt.Rows.Count > 0) { rpCartedProduct.DataSource = dt; rpCartedProduct.DataBind(); } else { rpCartedProduct.DataSource = dt; rpCartedProduct.DataBind(); lblMessage.Text = "You do not have any carted product!"; } }