Пример #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            int user = Convert.ToInt32(dropUser.SelectedValue);
            int res  = dbcon.deleteUser(user);

            rowUser.Visible       = false;
            rowSubmit.Visible     = false;
            lblSubmission.Visible = true;
            lblSubmission.Text    = "User is successfully deleted. \nResponse Code:" + (res == 1 ? "0200" : "0500");
        }