Guest User

Untitled

a guest
Jan 24th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. con.Open();
  2. string query = "UPDATE interior set Name_Arabic=N'" + txtName_Arabic.Text + "',gender='" + CBgender.Text + "',NATIONALITY='" + CBNATIONALITY.Text + "',username='" + txtusername.Text + "',Time='" + txttime.Text + "',clock='" + txtclock.Text + "',note='" + txt_note.Text + "',type='" + textBox2.Text + "',Irregularities='" + txtIrregularities.Text + "',Irregularities_date='" + txtIrregularities_data.Text + "' where CIVILIDD='" + txtCIVILIDD.Text + "'";
  3. SqlDataAdapter sda = new SqlDataAdapter(query, con);
  4. sda.SelectCommand.ExecuteNonQuery();
  5. con.Close();
  6.  
  7. string query2 = "select * from [next] where id='" + txtCIVILIDD.Text + "'";
  8. SqlCommand command = new SqlCommand(query2, con);
  9. SqlDataAdapter adapter = new SqlDataAdapter(command);
  10. con.Open();
Add Comment
Please, Sign In to add comment