public void network() { DataTable dt = objdataaccess.GetDatatable("Select * from tbl_WalletBalance where CID=" + Session["CustomerID"].ToString()); if (dt.Rows.Count > 0) { lblwalletbonus.Text = "0"; lblbonuspoint.Text = dt.Rows[0]["Balance"].ToString(); } dt = objcustomer.GetCustomer(Convert.ToInt32(Session["CustomerID"])); if (dt.Rows.Count > 0) { Session["memberid"] = dt.Rows[0]["memberid"].ToString(); dt = objcustomer.getnetwork(Session["memberid"].ToString()); rep_cart.DataSource = dt; rep_cart.DataBind(); } }