protected void FunMakeAdmin(object sender, GridViewEditEventArgs e)
        {
            int       x          = e.NewEditIndex;
            bool      check      = false;
            DataTable table      = Users.SelectByAccipt(true);
            DataTable tableAdmin = Admins.SelectAllAdmin();

            for (int i = 0; i < tableAdmin.Rows.Count; i++)
            {
                if (table.Rows[x]["User_Id"].ToString() == tableAdmin.Rows[i]["User_Id"].ToString())
                {
                    check = true;
                }
            }

            if (check == false)
            {
                Admins.Insert(int.Parse(table.Rows[x]["User_Id"].ToString()));
                GvwMakeAdmin.DataSource = Users.SelectByAccipt(true);
                GvwMakeAdmin.DataBind();
            }

            GridView3.DataSource = Admins.Select();
            GridView3.DataBind();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable data = Users.SelectByAccipt(true);
                GridView1.DataSource = data;
                GridView1.DataBind();

                GridView2.DataSource = Users.SelectByAccipt(false);
                GridView2.DataBind();

                GridView3.DataSource = Admins.Select();
                GridView3.DataBind();

                GvwMakeAdmin.DataSource = Users.SelectByAccipt(true);
                GvwMakeAdmin.DataBind();

                HttpCookie cookie = Request.Cookies["MyCookie"];
                if (cookie != null)
                {
                    int       x = int.Parse(cookie["userId"].ToString());
                    DataTable d = LoginAdmin.SelectById(x);
                    if (d.Rows.Count > 0)
                    {
                        ShowAdmin.Visible = true;
                    }


                    else
                    {
                        ShowAdmin.Visible = false;
                    }
                }

                else
                {
                    Response.Redirect("LogIn.aspx");
                }
            }
        }