Example #1
0
 protected void btn_RemoveUser_Click(object sender, EventArgs e)
 {//Remove user's with matching name or return error if none found.
     if (accountService.RemoveUser(txt_AddFirst.Text, txt_AddLast.Text))
     {
         lbl_Result.Text = "User:"******", " + txt_AddLast.Text + " Removed!";
     }
     else
     {
         lbl_Result.Text = "User not found!";
     }
 }