Пример #1
0
    protected void btnacti_Click(object sender, EventArgs e)
    {
        string name = DropDownList2.SelectedItem.ToString();

        bool check = dba.reactivateUser(name);

        if (check)
        {
            lblacti.Text = "User Activated!";
        }
        else
        {
            lblacti.Text = "Error! Try again Later!";
        }

        bool n = dba.deleteRequest(name);



        DataTable dt1 = dba.getAllCustRequest();

        DropDownList2.DataSource     = dt1;
        DropDownList2.DataValueField = "username";
        DropDownList2.DataTextField  = "username";
        DropDownList2.DataBind();
    }