public void Players()
        {
            GameMenuDetails gm = new GameMenuDetails();
            DataTable       dt = new DataTable();

            dt = gm.CurrentPlayers();
            int RowCount = dt.Rows.Count;

            RptHistory.DataSource = dt;
            RptHistory.DataBind();
        }
        public void Players()
        {
            try
            {
                GameMenuDetails gm = new GameMenuDetails();
                DataTable       dt = new DataTable();
                dt = gm.CurrentPlayers();
                int RowCount = dt.Rows.Count;
                Repeater1.DataSource = dt;
                Repeater1.DataBind();

                if (RowCount == 1)
                {
                    //Response.Redirect("Game.aspx");


                    lblMessage.InnerText = "Need Two  Player Start The Game";
                }
                else if (RowCount == 2)
                {
                    //Response.Redirect("Game.aspx");


                    lblMessage.InnerText = "Need One Player Start The Game";
                }
                else if (RowCount == 3)
                {
                    if (Session["Execute"].ToString() == "1")
                    {
                        Response.Redirect("Game.aspx");
                    }
                    else
                    {
                        System.Threading.Thread.Sleep(2000);
                        Response.Redirect("Game.aspx");
                    }
                }
            }
            catch (Exception ex)
            {
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["UserID"] != null)
                {
                    Session["CountID"] = 10;
                    getBankBalance();
                    GameMenuDetails gm = new GameMenuDetails();
                    DataTable       dt = new DataTable();
                    dt = gm.CurrentPlayers();
                    int RowCount = dt.Rows.Count;

                    if (RowCount == 2)
                    {
                        //TextBox1.Visible = false;
                    }
                    MarketDetails();
                    Perform();
                    ddlSector1.SelectedIndex  = 1;
                    ddlCompany1.SelectedIndex = 1;
                    txtNumberOFbyes.Text      = "0";
                    txtTotalPrice.Text        = "00.00";
                    ddlSector1.SelectedIndex  = 0;
                    ddlCompany1.SelectedIndex = 0;
                    PerformOnBasicLoad();
                }
                else
                {
                    Response.Redirect("Login.aspx");
                }
            }
            else
            {
            }
        }