protected void btnDelete_Click(object sender, EventArgs e) { DatabaseConnectivity dbcon = new DatabaseConnectivity(); int clientType = Convert.ToInt32(dropClientType.SelectedValue); int res = dbcon.deleteClientType(clientType); rowClientType.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")); }