private void ItemBind() { con.Open(); cmd = new SqlCommand("Select Cart_ID,Product_Id,ProdutctName,ProductPrice,ImgURL,SellerName from Cart_Details where User_ID= '" + Session["UID"].ToString() + "'", con); dr = cmd.ExecuteReader(); if (dr.HasRows == true) { AddToCart.DataSource = dr; AddToCart.DataBind(); } con.Close(); }