Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button2_Click(object sender, EventArgs e)
- {
- string k = "delete from Glumac where GlumacID="+textBox1.Text;
- try
- {
- con.Open();
- SqlCommand cmd = new SqlCommand(k, con);
- cmd.ExecuteNonQuery();
- MessageBox.Show("Uspesno ste obrisali");
- }
- catch (Exception ex)
- {
- MessageBox.Show(ex.Message);
- throw;
- }
- finally
- {
- if (con.State == ConnectionState.Open) con.Close();
- osvezi();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement