protected void btnDelete_Click(object sender, EventArgs e) { DatabaseConnectivity dbcon = new DatabaseConnectivity(); int userRoleID = Convert.ToInt32(dropUserRole.SelectedValue); int res = dbcon.deleteUserRole(userRoleID); rowUserRole.Visible = false; rowSubmit.Visible = false; lblSubmission.Visible = true; lblSubmission.Text = "Delete User Role Query is successfully executed with the Response Code: " + (res == 1 ? "0200 OK" : (res == -1 ? "0203 NOT OK" : "0500 SERVER ERROR")); }