protected void btnDodaj_Click(object sender, EventArgs e) { using (PoslovniKlubBL temp = new PoslovniKlubBL()) { if(temp.SaveBranch(txtNazivFilijale.Text, txtPTTFil.Text, txtCode.Text)) ResetFields(); else ClientScript.RegisterStartupScript(this.GetType(), "Greška!", "alert('Ova filijala već postoji!');", true); } }