Exemple #1
0
 protected void btnActivate_Click(object sender, EventArgs e)
 {
     Database data = new Database();
     if (data.ReactivateUser(Convert.ToInt32(lstEmployees.SelectedValue)))
     {
         Message.Text = "User Activated.";
         Message.Visible = true;
     }
     else
     {
         Message.Text = "User Could Not Be Activated.";
         Message.Visible = true;
     }
     LoadDeactivatedUsers();
     data.Close();
     data.Dispose();
 }