コード例 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            RequestDeactivateAccount requestDeactivate = new RequestDeactivateAccount();

            requestDeactivate.UserID = int.Parse(txtID.Text);
            DataTable dt = DAT.DeactivateAccount(requestDeactivate);

            DataTable UpdateGrid = DAT.ViewUsers();

            GridView1.DataSource = UpdateGrid;
            GridView1.DataBind();

            Label2.Text    = "*Account Deactivated*";
            Label2.Visible = true;
        }