protected void simpanKat_Click(object sender, EventArgs e) { try { crud smpn = new crud(); smpn.simpanadmin(txtid.Text, txtnama.Text, txtuser.Text, txtpswd1.Text); Response.Write("<script>alert('Data Success Added');</script>"); Response.Redirect("AddAdmin.aspx"); } catch (Exception ex) { txtError.Text = ex.Message; } }