protected void simpanKat_Click(object sender, EventArgs e) { try { crud updt = new crud(); updt.ubah(txtid.Text, txtKat.Text); Response.Write("<script>alert('Data Berhasil Diperbaharui');</script>"); Response.Redirect("EditDeleteNewsCategory.aspx"); fillgvKat(); } catch (Exception ex) { txtError.Text = ex.Message; } }